Color Reference · Midnight Slate
#402A45
oklch(32.3% 0.055 320)
HEX
#402A45
OKLCH
oklch(32.3% 0.055 320)
RGB
rgb(64, 42, 69)
HSL
hsl(289deg 24% 22%)
Relative Luminance
Y = 0.0318
Using #402A45 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 12.84:1
Sample text on Slate (#0F172A)
Contrast ratio 1.39:1
Using #402A45 as Button / Surface Fill
White ink (#FFFFFF) on #402A45
Contrast ratio 12.84:1
Dark ink (#0F172A) on #402A45
Contrast ratio 1.39:1
Recommended accessible ink on #402A45: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.