Color Reference · Cosmic Dusk

#342F78

oklch(35.5% 0.12 281)

HEX
#342F78
OKLCH
oklch(35.5% 0.12 281)
RGB
rgb(52, 47, 120)
HSL
hsl(244deg 44% 33%)
Relative Luminance
Y = 0.0412

Using #342F78 as Text Foreground

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

Using #342F78 as Button / Surface Fill

White ink (#FFFFFF) on #342F78
Contrast ratio 11.51:1
AAA
Dark ink (#0F172A) on #342F78
Contrast ratio 1.55:1
Fail

Recommended accessible ink on #342F78: #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 #342F78