A very dark blue, white text passes AA

Tailwind gray-950

In Tailwind CSS 4.3.3, gray-950 is defined as oklch(13% 0.028 261.692); in hex that is #030712, or rgb(3 7 18). White text on it reaches 20.13:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.

Last updated

#030712gray-950
From the theme file of Tailwind CSS 4.3.3 (--color-gray-950), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(13% 0.028 261.692)
Hex#030712
RGBrgb(3 7 18)
HSLhsl(224 71% 4%)
CSS variablevar(--color-gray-950)
Nearest CSS nameblack #000000, 0.132 away in OKLab
White text20.13:1: AA passes, AAA passes, large text passes
Black text1.04:1: AA fails, AAA fails, large text fails

About gray-950

In OKLCH, gray-950 has a lightness of 13.0%, a chroma of 0.028 and a hue of 261.7 degrees, which makes it a very dark blue. It closes the gray scale as its darkest shade, 8.0 points of lightness below gray-900.

HSL calls its lightness 4%, OKLCH 13.0%: 9 points between a formula and a measure of what the eye sees. The value lies inside sRGB, the gamut of a hex code, so gray-950 converts to #030712 without losing chroma.

For text, gray-950 wants white: 20.13:1 clears even AAA's 7:1, and black at 1.04:1 fails AA. White text passes on every gray shade from gray-500 down, so gray-950 is 5 shades past the line.

No CSS named color comes near it: the closest, black (#000000), is 0.132 away in OKLab.

Tints and shades

  1. #cecfd2
  2. #9ea2a7
  3. #71767e
  4. #484d57
  5. #212833
  6. #030712
  7. #02040b
  8. #010206
  9. #000102
  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. #030712
  2. #00cadf
  3. #775100
  4. #ccf8fd
  5. #a67da1

Locked as the first of five swatches, gray-950 gets #00cadf, #775100, #ccf8fd, #a67da1 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 gray-950

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

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

Common questions

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

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

Is Tailwind gray-950 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-gray-950: oklch(13% 0.028 261.692); #030712 is its conversion to sRGB.

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

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

Sources