Color Reference · Midnight Slate

#21212E

oklch(25.4% 0.024 285)

HEX
#21212E
OKLCH
oklch(25.4% 0.024 285)
RGB
rgb(33, 33, 46)
HSL
hsl(240deg 16% 15%)
Relative Luminance
Y = 0.0161

Using #21212E as Text Foreground

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

Using #21212E as Button / Surface Fill

White ink (#FFFFFF) on #21212E
Contrast ratio 15.89:1
AAA
Dark ink (#0F172A) on #21212E
Contrast ratio 1.12:1
Fail

Recommended accessible ink on #21212E: #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 #21212E