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

#1d293dslate-800
From the theme file of Tailwind CSS 4.3.3 (--color-slate-800), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(27.9% 0.041 260.031)
Hex#1d293d
RGBrgb(29 41 61)
HSLhsl(218 36% 18%)
CSS variablevar(--color-slate-800)
Nearest CSS namemidnightblue #191970, 0.105 away in OKLab
White text14.62:1: AA passes, AAA passes, large text passes
Black text1.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

  1. #d5d8dc
  2. #acb1ba
  3. #858d99
  4. #606979
  5. #3d485a
  6. #1d293d
  7. #141e2e
  8. #0c131f
  9. #050912
  10. #010306
  11. #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

  1. #1d293d
  2. #6583ad
  3. #e9f2ff
  4. #495e7a
  5. #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).

HTML
<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