Color Reference · Midnight Slate
#331F45
oklch(28.4% 0.071 307)
HEX
#331F45
OKLCH
oklch(28.4% 0.071 307)
RGB
rgb(51, 31, 69)
HSL
hsl(272deg 38% 20%)
Relative Luminance
Y = 0.0211
Using #331F45 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 14.76:1
Sample text on Slate (#0F172A)
Contrast ratio 1.21:1
Using #331F45 as Button / Surface Fill
White ink (#FFFFFF) on #331F45
Contrast ratio 14.76:1
Dark ink (#0F172A) on #331F45
Contrast ratio 1.21:1
Recommended accessible ink on #331F45: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.