Color Reference · Midnight Slate

#140F2F

oklch(19.6% 0.061 286)

HEX
#140F2F
OKLCH
oklch(19.6% 0.061 286)
RGB
rgb(20, 15, 47)
HSL
hsl(249deg 52% 12%)
Relative Luminance
Y = 0.007

Using #140F2F as Text Foreground

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

Using #140F2F as Button / Surface Fill

White ink (#FFFFFF) on #140F2F
Contrast ratio 18.44:1
AAA
Dark ink (#0F172A) on #140F2F
Contrast ratio 1.03:1
Fail

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