Color Reference · Midnight Slate

#281A3E

oklch(25.5% 0.067 300)

HEX
#281A3E
OKLCH
oklch(25.5% 0.067 300)
RGB
rgb(40, 26, 62)
HSL
hsl(263deg 41% 17%)
Relative Luminance
Y = 0.0154

Using #281A3E as Text Foreground

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

Using #281A3E as Button / Surface Fill

White ink (#FFFFFF) on #281A3E
Contrast ratio 16.06:1
AAA
Dark ink (#0F172A) on #281A3E
Contrast ratio 1.11:1
Fail

Recommended accessible ink on #281A3E: #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 #281A3E