Color Reference · Midnight Slate

#140F1E

oklch(18.3% 0.031 299)

HEX
#140F1E
OKLCH
oklch(18.3% 0.031 299)
RGB
rgb(20, 15, 30)
HSL
hsl(260deg 33% 9%)
Relative Luminance
Y = 0.0058

Using #140F1E as Text Foreground

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

Using #140F1E as Button / Surface Fill

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

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