Color Reference · Cosmic Dusk

#402E6D

oklch(35.6% 0.105 294)

HEX
#402E6D
OKLCH
oklch(35.6% 0.105 294)
RGB
rgb(64, 46, 109)
HSL
hsl(257deg 41% 30%)
Relative Luminance
Y = 0.0415

Using #402E6D as Text Foreground

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

Using #402E6D as Button / Surface Fill

White ink (#FFFFFF) on #402E6D
Contrast ratio 11.48:1
AAA
Dark ink (#0F172A) on #402E6D
Contrast ratio 1.56:1
Fail

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