A very dark yellowish gray, white text passes AA

Tailwind olive-800

In Tailwind CSS 4.3.3, olive-800 is defined as oklch(28.6% 0.016 107.4); in hex that is #2b2b22, or rgb(43 43 34). White text on it reaches 14.27:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.

Last updated

#2b2b22olive-800
From the theme file of Tailwind CSS 4.3.3 (--color-olive-800), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(28.6% 0.016 107.4)
Hex#2b2b22
RGBrgb(43 43 34)
HSLhsl(60 12% 15%)
CSS variablevar(--color-olive-800)
Nearest CSS namedarkslategray #2f4f4f, 0.124 away in OKLab
White text14.27:1: AA passes, AAA passes, large text passes
Black text1.47:1: AA fails, AAA fails, large text fails

About olive-800

In OKLCH, olive-800 has a lightness of 28.6%, a chroma of 0.016 and a hue of 107.4 degrees, which makes it a very dark yellowish gray. The step up to olive-700 is 10.8 points of lightness, and the step down to olive-900 5.8 points.

Its lightness is 15% in HSL and 28.6% in OKLCH, 14 points apart; only the second tracks how light it looks. The value lies inside sRGB, the gamut of a hex code, so olive-800 converts to #2b2b22 without losing chroma.

For text, olive-800 wants white: 14.27:1 clears even AAA's 7:1, and black at 1.47:1 fails AA. On the olive scale white text works from olive-600 to olive-950; olive-800 has 2 shades of margin.

CSS has no keyword in its neighborhood; darkslategray (#2f4f4f) is the nearest, a long 0.124 away in OKLab.

Tints and shades

  1. #d9d7d8
  2. #b5b0b1
  3. #918b8d
  4. #70686a
  5. #4f4649
  6. #2b2b22
  7. #241c1f
  8. #181214
  9. #0d080a
  10. #040203

From light to dark: 5 toward white and 4 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. #2b2b22
  2. #9a9641
  3. #f3eebc
  4. #605200
  5. #bdbae8

Locked as the first of five swatches, olive-800 gets #9a9641, #f3eebc, #605200, #bdbae8 from Recolor's generator, a complementary palette, built on the hue opposite. The seed is its hex, so the palette stays the same. Open it in Recolor.

Using olive-800

Pair it with text-white, 14.27:1; olive-800 as text on a white page measures the same ratio. In CSS it is var(--color-olive-800).

HTML
<a class="bg-olive-800 text-white" href="/start">Get started</a>
<p class="text-olive-800">Text in olive-800</p>

Common questions

Does white text pass WCAG AA on Tailwind olive-800?

Yes. White text measures 14.27:1 on olive-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.

Is Tailwind olive-800 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-olive-800: oklch(28.6% 0.016 107.4); #2b2b22 is its conversion to sRGB.

Is there a CSS named color for Tailwind olive-800?

No. The nearest CSS named color is darkslategray (#2f4f4f), 0.124 away in OKLab.

Sources