Color Reference · Midnight Slate

#140E28

oklch(18.8% 0.051 291)

HEX
#140E28
OKLCH
oklch(18.8% 0.051 291)
RGB
rgb(20, 14, 40)
HSL
hsl(254deg 48% 11%)
Relative Luminance
Y = 0.0062

Using #140E28 as Text Foreground

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

Using #140E28 as Button / Surface Fill

White ink (#FFFFFF) on #140E28
Contrast ratio 18.7:1
AAA
Dark ink (#0F172A) on #140E28
Contrast ratio 1.05:1
Fail

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