A very dark bluish gray, white text passes AA
Tailwind zinc-800
Tailwind zinc-800 is oklch(27.4% 0.006 286.033) in Tailwind CSS 4.3.3, which is #27272a in hex and rgb(39 39 42). White text on it reaches 14.89:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-zinc-800), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(27.4% 0.006 286.033) |
| Hex | #27272a |
| RGB | rgb(39 39 42) |
| HSL | hsl(240 4% 16%) |
| CSS variable | var(--color-zinc-800) |
| Nearest CSS name | darkslategray #2f4f4f, 0.135 away in OKLab |
| White text | 14.89:1: AA passes, AAA passes, large text passes |
| Black text | 1.41:1: AA fails, AAA fails, large text fails |
About zinc-800
Tailwind zinc-800 is a very dark bluish gray: OKLCH lightness 27.4%, chroma 0.006, hue 286.0 degrees. On Tailwind's zinc scale it sits between zinc-700 at 37.0% and zinc-900 at 21.0%.
Its lightness is 16% in HSL and 27.4% in OKLCH, 12 points apart; only the second tracks how light it looks. Its value fits inside sRGB, so #27272a is the same color, not an approximation.
White text on zinc-800 measures 14.89:1, past the 7:1 of WCAG AAA, while black text manages only 1.41:1. On the zinc scale white text works from zinc-500 to zinc-950; zinc-800 has 3 shades of margin.
CSS has no keyword in its neighborhood; darkslategray (#2f4f4f) is the nearest, a long 0.135 away in OKLab.
Tints and shades
- #d8d7d7
- #b1b0b0
- #8d8a8b
- #6a6768
- #494546
- #27272a
- #1e1c1c
- #141112
- #090808
- #030202
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
- #27272a
- #faaeca
- #6a3d50
- #ecfaec
- #4b999f
Recolor's generator, with zinc-800 locked as swatch 1 and the seed taken from its hex, drew a split-complementary palette, built on the two hues beside its opposite: #faaeca, #6a3d50, #ecfaec, #4b999f. Open it in Recolor.
Using zinc-800
Pair it with text-white, 14.89:1; zinc-800 as text on a white page measures the same ratio. In CSS it is var(--color-zinc-800).
<a class="bg-zinc-800 text-white" href="/start">Get started</a>
<p class="text-zinc-800">Text in zinc-800</p>Common questions
Does white text pass WCAG AA on Tailwind zinc-800?
Yes. White text measures 14.89:1 on zinc-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind zinc-800 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-zinc-800: oklch(27.4% 0.006 286.033); #27272a is its conversion to sRGB.
Is there a CSS named color for Tailwind zinc-800?
No. The nearest CSS named color is darkslategray (#2f4f4f), 0.135 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org