Color Reference · Cosmic Dusk

#402F64

oklch(35.2% 0.09 296)

HEX
#402F64
OKLCH
oklch(35.2% 0.09 296)
RGB
rgb(64, 47, 100)
HSL
hsl(259deg 36% 29%)
Relative Luminance
Y = 0.0404

Using #402F64 as Text Foreground

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

Using #402F64 as Button / Surface Fill

White ink (#FFFFFF) on #402F64
Contrast ratio 11.61:1
AAA
Dark ink (#0F172A) on #402F64
Contrast ratio 1.54:1
Fail

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