Color Reference · Midnight Slate
#2A172E
oklch(24.1% 0.05 320)
HEX
#2A172E
OKLCH
oklch(24.1% 0.05 320)
RGB
rgb(42, 23, 46)
HSL
hsl(290deg 33% 14%)
Relative Luminance
Y = 0.013
Using #2A172E as Text Foreground
Sample text on White (#FFFFFF)
Contrast ratio 16.66:1
Sample text on Slate (#0F172A)
Contrast ratio 1.07:1
Using #2A172E as Button / Surface Fill
White ink (#FFFFFF) on #2A172E
Contrast ratio 16.66:1
Dark ink (#0F172A) on #2A172E
Contrast ratio 1.07:1
Recommended accessible ink on #2A172E: #FFFFFF.
OKLCH Tonal Scale (50–950)
Click any shade step to inspect its conversions and contrast profile.