A very dark blue, white text passes AA
Tailwind blue-950
The hex code of Tailwind blue-950 is #162456 (rgb(22 36 86)), from its Tailwind CSS 4.3.3 value oklch(28.2% 0.091 267.935). White text on it reaches 14.78:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-blue-950), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(28.2% 0.091 267.935) |
| Hex | #162456 |
| RGB | rgb(22 36 86) |
| HSL | hsl(227 59% 21%) |
| CSS variable | var(--color-blue-950) |
| Nearest CSS name | midnightblue #191970, 0.053 away in OKLab |
| White text | 14.78:1: AA passes, AAA passes, large text passes |
| Black text | 1.42:1: AA fails, AAA fails, large text fails |
About blue-950
Read as numbers, blue-950 is lightness 28.2%, chroma 0.091 and hue 267.9 degrees; read by eye, it is a very dark blue. It closes the blue scale as its darkest shade, 9.7 points of lightness below blue-900.
HSL calls its lightness 21%, OKLCH 28.2%: 7 points between a formula and a measure of what the eye sees. No gamut mapping is needed here: oklch(28.2% 0.091 267.935) sits inside sRGB and #162456 matches it.
White on blue-950 reads at 14.78:1, enough for AAA body text; black reaches 1.42:1 and should stay off it. White text passes on every blue shade from blue-600 down, so blue-950 is 4 shades past the line.
The nearest CSS named color, midnightblue (#191970), is 0.053 away in OKLab: related, but plainly a different color.
Tints and shades
- #d3d7e2
- #a9b1c5
- #808ca9
- #5a688d
- #364672
- #162456
- #0f1a42
- #08102e
- #03071c
- #01020b
- #000001
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
- #162456
- #747ea5
- #fce5b2
- #445f93
- #d6c49b
Around blue-950 as swatch 1, Recolor's generator made a complementary palette, built on the hue opposite: #747ea5, #fce5b2, #445f93, #d6c49b, drawn from a seed fixed by its hex. Open it in Recolor.
Using blue-950
Pair it with text-white, 14.78:1; blue-950 as text on a white page measures the same ratio. In CSS it is var(--color-blue-950).
<a class="bg-blue-950 text-white" href="/start">Get started</a>
<p class="text-blue-950">Text in blue-950</p>Common questions
Does white text pass WCAG AA on Tailwind blue-950?
Yes. White text measures 14.78:1 on blue-950, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind blue-950 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-blue-950: oklch(28.2% 0.091 267.935); #162456 is its conversion to sRGB.
Is there a CSS named color for Tailwind blue-950?
No. The nearest CSS named color is midnightblue (#191970), 0.053 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org