Color Reference · Cosmic Dusk

#381F52

oklch(30% 0.091 304)

HEX
#381F52
OKLCH
oklch(30% 0.091 304)
RGB
rgb(56, 31, 82)
HSL
hsl(269deg 45% 22%)
Relative Luminance
Y = 0.0243

Using #381F52 as Text Foreground

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

Using #381F52 as Button / Surface Fill

White ink (#FFFFFF) on #381F52
Contrast ratio 14.13:1
AAA
Dark ink (#0F172A) on #381F52
Contrast ratio 1.26:1
Fail

Recommended accessible ink on #381F52: #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 #381F52