Color Reference · Midnight Slate
#331E45
oklch(28.2% 0.073 307)
HEX
#331E45
OKLCH
oklch(28.2% 0.073 307)
RGB
rgb(51, 30, 69)
HSL
hsl(272deg 39% 19%)
Relative Luminance
Y = 0.0206
Using #331E45 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 14.87:1
Sample text on Slate (#0F172A)
Contrast ratio 1.2:1
Using #331E45 as Button / Surface Fill
White ink (#FFFFFF) on #331E45
Contrast ratio 14.87:1
Dark ink (#0F172A) on #331E45
Contrast ratio 1.2:1
Recommended accessible ink on #331E45: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.