Color Reference · Midnight Slate

#18152D

oklch(21.3% 0.046 288)

HEX
#18152D
OKLCH
oklch(21.3% 0.046 288)
RGB
rgb(24, 21, 45)
HSL
hsl(248deg 36% 13%)
Relative Luminance
Y = 0.0092

Using #18152D as Text Foreground

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

Using #18152D as Button / Surface Fill

White ink (#FFFFFF) on #18152D
Contrast ratio 17.74:1
AAA
Dark ink (#0F172A) on #18152D
Contrast ratio 1.01:1
Fail

Recommended accessible ink on #18152D: #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 #18152D