A grayish medium blue, black text passes AA
Tailwind slate-400
Tailwind slate-400 is oklch(70.4% 0.04 256.788) in Tailwind CSS 4.3.3, which is #90a1b9 in hex and rgb(144 161 185). Black text on it reaches 7.98:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-slate-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(70.4% 0.04 256.788) |
| Hex | #90a1b9 |
| RGB | rgb(144 161 185) |
| HSL | hsl(215 23% 65%) |
| CSS variable | var(--color-slate-400) |
| Nearest CSS name | darkgray #a9a9a9, 0.051 away in OKLab |
| White text | 2.63:1: AA fails, AAA fails, large text fails |
| Black text | 7.98:1: AA passes, AAA passes, large text passes |
About slate-400
Tailwind slate-400 is a grayish medium blue: OKLCH lightness 70.4%, chroma 0.040, hue 256.8 degrees. On Tailwind's slate scale it sits between slate-300 at 86.9% and slate-500 at 55.4%.
Here HSL's lightness, 65%, lands near OKLCH's 70.4%, which is not true of every color. Its value fits inside sRGB, so #90a1b9 is the same color, not an approximation.
Black text on slate-400 measures 7.98:1, past the 7:1 of WCAG AAA, while white text manages only 2.63:1. Black text holds AA down to here on the slate scale; at slate-500 it falls to 4.41:1.
No CSS keyword matches it; darkgray (#a9a9a9) is the nearest, 0.051 away in OKLab, a clear step off.
Tints and shades
- #eceff3
- #d9dfe7
- #c6cfdc
- #b4c0d0
- #a2b0c5
- #90a1b9
- #707d90
- #515b6a
- #343c46
- #1a1e24
- #040507
From light to dark: 5 toward white and 5 toward black, mixed in OKLCH a sixth of the way at a time with the hue kept. A step that would repeat its neighbor is left out.
A palette around it
- #90a1b9
- #362611
- #d0bba0
- #36577f
- #cee1fb
Recolor's generator, with slate-400 locked as swatch 1 and the seed taken from its hex, drew a complementary palette, built on the hue opposite: #362611, #d0bba0, #36577f, #cee1fb. Open it in Recolor.
Using slate-400
Pair it with text-black, 7.98:1; slate-400 as text on a black page measures the same ratio. In CSS it is var(--color-slate-400).
<a class="bg-slate-400 text-black" href="/start">Get started</a>
<p class="text-slate-400">Text in slate-400</p>Common questions
Does white text pass WCAG AA on Tailwind slate-400?
No. White text measures 2.63:1 on slate-400, under AA's 4.5:1; black text measures 7.98:1 and passes. The lightest slate shade for white text is slate-500.
Is Tailwind slate-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-slate-400: oklch(70.4% 0.04 256.788); #90a1b9 is its conversion to sRGB.
Is there a CSS named color for Tailwind slate-400?
No. The nearest CSS named color is darkgray (#a9a9a9), 0.051 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org