A very dark blue, white text passes AA
Tailwind slate-800
In Tailwind CSS 4.3.3, slate-800 is defined as oklch(27.9% 0.041 260.031); in hex that is #1d293d, or rgb(29 41 61). White text on it reaches 14.62:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-slate-800), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(27.9% 0.041 260.031) |
| Hex | #1d293d |
| RGB | rgb(29 41 61) |
| HSL | hsl(218 36% 18%) |
| CSS variable | var(--color-slate-800) |
| Nearest CSS name | midnightblue #191970, 0.105 away in OKLab |
| White text | 14.62:1: AA passes, AAA passes, large text passes |
| Black text | 1.44:1: AA fails, AAA fails, large text fails |
About slate-800
In OKLCH, slate-800 has a lightness of 27.9%, a chroma of 0.041 and a hue of 260.0 degrees, which makes it a very dark blue. The step up to slate-700 is 9.3 points of lightness, and the step down to slate-900 7.1 points.
Its lightness is 18% in HSL and 27.9% in OKLCH, 10 points apart; only the second tracks how light it looks. The value lies inside sRGB, the gamut of a hex code, so slate-800 converts to #1d293d without losing chroma.
For text, slate-800 wants white: 14.62:1 clears even AAA's 7:1, and black at 1.44:1 fails AA. On the slate scale white text works from slate-500 to slate-950; slate-800 has 3 shades of margin.
CSS has no keyword in its neighborhood; midnightblue (#191970) is the nearest, a long 0.105 away in OKLab.
Tints and shades
- #d5d8dc
- #acb1ba
- #858d99
- #606979
- #3d485a
- #1d293d
- #141e2e
- #0c131f
- #050912
- #010306
- #000001
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
- #1d293d
- #6583ad
- #e9f2ff
- #495e7a
- #a8bada
Locked as the first of five swatches, slate-800 gets #6583ad, #e9f2ff, #495e7a, #a8bada from Recolor's generator, a monochromatic palette, one hue in five lightnesses. The seed is its hex, so the palette stays the same. Open it in Recolor.
Using slate-800
Pair it with text-white, 14.62:1; slate-800 as text on a white page measures the same ratio. In CSS it is var(--color-slate-800).
<a class="bg-slate-800 text-white" href="/start">Get started</a>
<p class="text-slate-800">Text in slate-800</p>Common questions
Does white text pass WCAG AA on Tailwind slate-800?
Yes. White text measures 14.62:1 on slate-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind slate-800 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-slate-800: oklch(27.9% 0.041 260.031); #1d293d is its conversion to sRGB.
Is there a CSS named color for Tailwind slate-800?
No. The nearest CSS named color is midnightblue (#191970), 0.105 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org