Color Reference · Midnight Slate

#12121F

oklch(18.9% 0.026 284)

HEX
#12121F
OKLCH
oklch(18.9% 0.026 284)
RGB
rgb(18, 18, 31)
HSL
hsl(240deg 27% 10%)
Relative Luminance
Y = 0.0066

Using #12121F as Text Foreground

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

Using #12121F as Button / Surface Fill

White ink (#FFFFFF) on #12121F
Contrast ratio 18.55:1
AAA
Dark ink (#0F172A) on #12121F
Contrast ratio 1.04:1
Fail

Recommended accessible ink on #12121F: #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 #12121F