Color Reference · Cosmic Dusk

#281D4C

oklch(27.2% 0.083 291)

HEX
#281D4C
OKLCH
oklch(27.2% 0.083 291)
RGB
rgb(40, 29, 76)
HSL
hsl(254deg 45% 21%)
Relative Luminance
Y = 0.0185

Using #281D4C as Text Foreground

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

Using #281D4C as Button / Surface Fill

White ink (#FFFFFF) on #281D4C
Contrast ratio 15.32:1
AAA
Dark ink (#0F172A) on #281D4C
Contrast ratio 1.16:1
Fail

Recommended accessible ink on #281D4C: #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 #281D4C