A very dark blue, white text passes AA

Tailwind slate-950

Tailwind slate-950 is oklch(12.9% 0.042 264.695) in Tailwind CSS 4.3.3, which is #020618 in hex and rgb(2 6 24). White text on it reaches 20.16:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.

Last updated

#020618slate-950
From the theme file of Tailwind CSS 4.3.3 (--color-slate-950), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(12.9% 0.042 264.695)
Hex#020618
RGBrgb(2 6 24)
HSLhsl(229 85% 5%)
CSS variablevar(--color-slate-950)
Nearest CSS nameblack #000000, 0.137 away in OKLab
White text20.16:1: AA passes, AAA passes, large text passes
Black text1.04:1: AA fails, AAA fails, large text fails

About slate-950

Tailwind slate-950 is a very dark blue: OKLCH lightness 12.9%, chroma 0.042, hue 264.7 degrees. Slate-950 is the last and darkest of the eleven slate shades, 7.9 points under slate-900.

Its lightness is 5% in HSL and 12.9% in OKLCH, 8 points apart; only the second tracks how light it looks. Its value fits inside sRGB, so #020618 is the same color, not an approximation.

White text on slate-950 measures 20.16:1, past the 7:1 of WCAG AAA, while black text manages only 1.04:1. On the slate scale white text works from slate-500 to slate-950; slate-950 has 5 shades of margin.

CSS has no keyword in its neighborhood; black (#000000) is the nearest, a long 0.137 away in OKLab.

Tints and shades

  1. #cdcfd4
  2. #9da2ab
  3. #707683
  4. #454d5d
  5. #1f2739
  6. #020618
  7. #010310
  8. #010209
  9. #000104
  10. #000001

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. #020618
  2. #a4beff
  3. #305b37
  4. #ffddd6
  5. #a86d64

Recolor's generator, with slate-950 locked as swatch 1 and the seed taken from its hex, drew a triadic palette, three hues a third of the wheel apart: #a4beff, #305b37, #ffddd6, #a86d64. Open it in Recolor.

Using slate-950

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

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

Common questions

Does white text pass WCAG AA on Tailwind slate-950?

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

Is Tailwind slate-950 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-slate-950: oklch(12.9% 0.042 264.695); #020618 is its conversion to sRGB.

Is there a CSS named color for Tailwind slate-950?

No. The nearest CSS named color is black (#000000), 0.137 away in OKLab.

Sources