Color Reference · Midnight Slate

#140F2D

oklch(19.4% 0.058 287)

HEX
#140F2D
OKLCH
oklch(19.4% 0.058 287)
RGB
rgb(20, 15, 45)
HSL
hsl(250deg 50% 12%)
Relative Luminance
Y = 0.0068

Using #140F2D as Text Foreground

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

Using #140F2D as Button / Surface Fill

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

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