Color Reference · Cosmic Dusk

#403166

oklch(35.7% 0.09 294)

HEX
#403166
OKLCH
oklch(35.7% 0.09 294)
RGB
rgb(64, 49, 102)
HSL
hsl(257deg 35% 30%)
Relative Luminance
Y = 0.0425

Using #403166 as Text Foreground

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

Using #403166 as Button / Surface Fill

White ink (#FFFFFF) on #403166
Contrast ratio 11.36:1
AAA
Dark ink (#0F172A) on #403166
Contrast ratio 1.57:1
Fail

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