Color Reference · Cosmic Dusk

#331D51

oklch(28.9% 0.092 300)

HEX
#331D51
OKLCH
oklch(28.9% 0.092 300)
RGB
rgb(51, 29, 81)
HSL
hsl(265deg 47% 22%)
Relative Luminance
Y = 0.0218

Using #331D51 as Text Foreground

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

Using #331D51 as Button / Surface Fill

White ink (#FFFFFF) on #331D51
Contrast ratio 14.63:1
AAA
Dark ink (#0F172A) on #331D51
Contrast ratio 1.22:1
Fail

Recommended accessible ink on #331D51: #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 #331D51