Color Reference · Cosmic Dusk

#31225D

oklch(30.6% 0.101 291)

HEX
#31225D
OKLCH
oklch(30.6% 0.101 291)
RGB
rgb(49, 34, 93)
HSL
hsl(255deg 46% 25%)
Relative Luminance
Y = 0.0259

Using #31225D as Text Foreground

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

Using #31225D as Button / Surface Fill

White ink (#FFFFFF) on #31225D
Contrast ratio 13.84:1
AAA
Dark ink (#0F172A) on #31225D
Contrast ratio 1.29:1
Fail

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