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
--color-gray-950), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(13% 0.028 261.692) |
| Hex | #030712 |
| RGB | rgb(3 7 18) |
| HSL | hsl(224 71% 4%) |
| CSS variable | var(--color-gray-950) |
| Nearest CSS name | black #000000, 0.132 away in OKLab |
| White text | 20.13:1: AA passes, AAA passes, large text passes |
| Black text | 1.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
- #cecfd2
- #9ea2a7
- #71767e
- #484d57
- #212833
- #030712
- #02040b
- #010206
- #000102
- #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
- #030712
- #00cadf
- #775100
- #ccf8fd
- #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).
<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
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org