Color Reference · Midnight Slate
#331F36
oklch(27.5% 0.05 322)
HEX
#331F36
OKLCH
oklch(27.5% 0.05 322)
RGB
rgb(51, 31, 54)
HSL
hsl(292deg 27% 17%)
Relative Luminance
Y = 0.0195
Using #331F36 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 15.11:1
Sample text on Slate (#0F172A)
Contrast ratio 1.18:1
Using #331F36 as Button / Surface Fill
White ink (#FFFFFF) on #331F36
Contrast ratio 15.11:1
Dark ink (#0F172A) on #331F36
Contrast ratio 1.18:1
Recommended accessible ink on #331F36: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.