Color Reference · Midnight Slate
#402948
oklch(32.3% 0.061 317)
HEX
#402948
OKLCH
oklch(32.3% 0.061 317)
RGB
rgb(64, 41, 72)
HSL
hsl(285deg 27% 22%)
Relative Luminance
Y = 0.0314
Using #402948 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 12.89:1
Sample text on Slate (#0F172A)
Contrast ratio 1.38:1
Using #402948 as Button / Surface Fill
White ink (#FFFFFF) on #402948
Contrast ratio 12.89:1
Dark ink (#0F172A) on #402948
Contrast ratio 1.38:1
Recommended accessible ink on #402948: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.