Color Reference · Cosmic Dusk

#331E52

oklch(29.2% 0.092 299)

HEX
#331E52
OKLCH
oklch(29.2% 0.092 299)
RGB
rgb(51, 30, 82)
HSL
hsl(264deg 46% 22%)
Relative Luminance
Y = 0.0224

Using #331E52 as Text Foreground

Sample text on White (#FFFFFF)
Contrast ratio 14.5:1
AAA
Sample text on Slate (#0F172A)
Contrast ratio 1.23:1
Fail

Using #331E52 as Button / Surface Fill

White ink (#FFFFFF) on #331E52
Contrast ratio 14.5:1
AAA
Dark ink (#0F172A) on #331E52
Contrast ratio 1.23:1
Fail

Recommended accessible ink on #331E52: #FFFFFF.

OKLCH Tonal Scale (50–950)

Click any shade step to inspect its conversions and contrast profile.

Export Tailwind CSS v4 Scale →

OKLCH Color Harmonies from #331E52