Color Reference · Midnight Slate

#140E46

oklch(21.8% 0.099 279)

HEX
#140E46
OKLCH
oklch(21.8% 0.099 279)
RGB
rgb(20, 14, 70)
HSL
hsl(246deg 67% 16%)
Relative Luminance
Y = 0.009

Using #140E46 as Text Foreground

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

Using #140E46 as Button / Surface Fill

White ink (#FFFFFF) on #140E46
Contrast ratio 17.78:1
AAA
Dark ink (#0F172A) on #140E46
Contrast ratio 1:1
Fail

Recommended accessible ink on #140E46: #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 #140E46