Color Reference · Cosmic Dusk

#40274A

oklch(32% 0.068 316)

HEX
#40274A
OKLCH
oklch(32% 0.068 316)
RGB
rgb(64, 39, 74)
HSL
hsl(283deg 31% 22%)
Relative Luminance
Y = 0.0304

Using #40274A as Text Foreground

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

Using #40274A as Button / Surface Fill

White ink (#FFFFFF) on #40274A
Contrast ratio 13.07:1
AAA
Dark ink (#0F172A) on #40274A
Contrast ratio 1.37:1
Fail

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