A vivid dark teal, white text passes AA

Tailwind cyan-800

In Tailwind CSS 4.3.3, cyan-800 is defined as oklch(45% 0.085 224.283); as the nearest sRGB hex that is #005f78, or rgb(0 95 120). White text on it reaches 7.22:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.

Last updated

#005f78cyan-800
From the theme file of Tailwind CSS 4.3.3 (--color-cyan-800), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(45% 0.085 224.283)
Hex#005f78, the nearest color in sRGB
RGBrgb(0 95 120)
HSLhsl(192 100% 24%)
OKLCH of the hexoklch(45.1% 0.085 223.8)
CSS variablevar(--color-cyan-800)
Nearest CSS namedarkslategray #2f4f4f, 0.072 away in OKLab
White text7.22:1: AA passes, AAA passes, large text passes
Black text2.91:1: AA fails, AAA fails, large text fails

About cyan-800

In OKLCH, cyan-800 has a lightness of 45.0%, a chroma of 0.085 and a hue of 224.3 degrees, which makes it a vivid dark teal. The step up to cyan-700 is 7.0 points of lightness, and the step down to cyan-900 5.2 points.

HSL puts its lightness at 24% and OKLCH at 45.0%, 21 points apart: HSL's lightness does not follow what the eye sees, OKLCH's is built to. Cyan-800 is one of the 95 colors in Tailwind CSS 4.3.3 that sRGB cannot hold. Its hex, #005f78, gives up 0.000 of chroma and moves 0.1 points of lightness and 0.5 degrees of hue; a Display P3 screen shows the full value.

For text, cyan-800 wants white: 7.22:1 clears even AAA's 7:1, and black at 2.91:1 fails AA. White text passes on every cyan shade from cyan-700 down, so cyan-800 is 1 shade past the line.

The nearest CSS named color, darkslategray (#2f4f4f), is 0.072 away in OKLab: related, but plainly a different color.

Tints and shades

  1. #d7e3e8
  2. #b1c8d1
  3. #8aadba
  4. #6492a4
  5. #3c788e
  6. #005f78
  7. #00495d
  8. #003443
  9. #00202a
  10. #000e14
  11. #000203

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. #005f78
  2. #a0bdca
  3. #232118
  4. #927685
  5. #fdedf5

Locked as the first of five swatches, cyan-800 gets #a0bdca, #232118, #927685, #fdedf5 from Recolor's generator, a triadic palette, three hues a third of the wheel apart. The seed is its hex, so the palette stays the same. Open it in Recolor.

Using cyan-800

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

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

Common questions

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

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

Is Tailwind cyan-800 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-cyan-800: oklch(45% 0.085 224.283); #005f78 is its nearest sRGB color, since the value lies outside sRGB.

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

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

Sources