Color Reference · Cosmic Dusk

#321F52

oklch(29.2% 0.09 298)

HEX
#321F52
OKLCH
oklch(29.2% 0.09 298)
RGB
rgb(50, 31, 82)
HSL
hsl(262deg 45% 22%)
Relative Luminance
Y = 0.0227

Using #321F52 as Text Foreground

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

Using #321F52 as Button / Surface Fill

White ink (#FFFFFF) on #321F52
Contrast ratio 14.45:1
AAA
Dark ink (#0F172A) on #321F52
Contrast ratio 1.24:1
Fail

Recommended accessible ink on #321F52: #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 #321F52