Color Reference · Midnight Slate

#170E1D

oklch(18.4% 0.033 311)

HEX
#170E1D
OKLCH
oklch(18.4% 0.033 311)
RGB
rgb(23, 14, 29)
HSL
hsl(276deg 35% 8%)
Relative Luminance
Y = 0.0058

Using #170E1D 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 #170E1D as Button / Surface Fill

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

Recommended accessible ink on #170E1D: #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 #170E1D