Color Reference · Midnight Slate

#402D46

oklch(33% 0.05 318)

HEX
#402D46
OKLCH
oklch(33% 0.05 318)
RGB
rgb(64, 45, 70)
HSL
hsl(286deg 22% 23%)
Relative Luminance
Y = 0.0341

Using #402D46 as Text Foreground

Sample text on White (#FFFFFF)
Contrast ratio 12.49:1
AAA
Sample text on Slate (#0F172A)
Contrast ratio 1.43:1
Fail

Using #402D46 as Button / Surface Fill

White ink (#FFFFFF) on #402D46
Contrast ratio 12.49:1
AAA
Dark ink (#0F172A) on #402D46
Contrast ratio 1.43:1
Fail

Recommended accessible ink on #402D46: #FFFFFF.

OKLCH Tonal Scale (50–950)

Click any shade step to inspect its conversions and contrast profile.

Export Tailwind CSS v4 Scale →

OKLCH Color Harmonies from #402D46