Color Reference · Midnight Slate

#331C3D

oklch(27.3% 0.066 315)

HEX
#331C3D
OKLCH
oklch(27.3% 0.066 315)
RGB
rgb(51, 28, 61)
HSL
hsl(282deg 37% 17%)
Relative Luminance
Y = 0.0187

Using #331C3D as Text Foreground

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

Using #331C3D as Button / Surface Fill

White ink (#FFFFFF) on #331C3D
Contrast ratio 15.28:1
AAA
Dark ink (#0F172A) on #331C3D
Contrast ratio 1.17:1
Fail

Recommended accessible ink on #331C3D: #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 #331C3D