Color Reference · Cosmic Dusk

#311D49

oklch(28.1% 0.08 303)

HEX
#311D49
OKLCH
oklch(28.1% 0.08 303)
RGB
rgb(49, 29, 73)
HSL
hsl(267deg 43% 20%)
Relative Luminance
Y = 0.0201

Using #311D49 as Text Foreground

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

Using #311D49 as Button / Surface Fill

White ink (#FFFFFF) on #311D49
Contrast ratio 14.97:1
AAA
Dark ink (#0F172A) on #311D49
Contrast ratio 1.19:1
Fail

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