Color Reference · Midnight Slate

#140E2D

oklch(19.2% 0.06 288)

HEX
#140E2D
OKLCH
oklch(19.2% 0.06 288)
RGB
rgb(20, 14, 45)
HSL
hsl(252deg 53% 12%)
Relative Luminance
Y = 0.0065

Using #140E2D as Text Foreground

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

Using #140E2D as Button / Surface Fill

White ink (#FFFFFF) on #140E2D
Contrast ratio 18.58:1
AAA
Dark ink (#0F172A) on #140E2D
Contrast ratio 1.04:1
Fail

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