Color Reference · Midnight Slate
#402140
oklch(30.3% 0.068 327)
HEX
#402140
OKLCH
oklch(30.3% 0.068 327)
RGB
rgb(64, 33, 64)
HSL
hsl(300deg 32% 19%)
Relative Luminance
Y = 0.0255
Using #402140 as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 13.91:1
Sample text on Slate (#0F172A)
Contrast ratio 1.28:1
Using #402140 as Button / Surface Fill
White ink (#FFFFFF) on #402140
Contrast ratio 13.91:1
Dark ink (#0F172A) on #402140
Contrast ratio 1.28:1
Recommended accessible ink on #402140: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.