Toolman

Tailwind sky colours

The eleven sky shades in the default Tailwind CSS palette, with the contrast figures that decide which of them you can actually put text on.

Every sky shade

ClassHexRGBOn whiteText colourAs text
sky-50#F0F9FF240, 249, 2551.07:1black
sky-100#E0F2FE224, 242, 2541.15:1black
sky-200#BAE6FD186, 230, 2531.33:1black
sky-300#7DD3FC125, 211, 2521.67:1black
sky-400#38BDF856, 189, 2482.14:1black
sky-500#0EA5E914, 165, 2332.77:1black
sky-600#0284C72, 132, 1994.1:1blacklarge only
sky-700#0369A13, 105, 1615.93:1whiteAA
sky-800#0759857, 89, 1337.56:1whiteAA
sky-900#0C4A6E12, 74, 1109.46:1whiteAA
sky-950#082F498, 47, 7313.88:1whiteAA

"On white" is the contrast ratio against a white page. "As text" is whether that ratio passes WCAG AA for normal text, which needs 4.5:1; large text needs only 3:1.

Where the scale turns over

sky-700 is the lightest shade that reaches 4.5:1 against white, so it is the first one usable for body text on a white page. It is also where a background of this hue stops taking black text and starts needing white — the two thresholds are 4.5:1 and 4.58:1, and on this scale they fall on the same step.

Using sky in Tailwind

<div class="bg-sky-500 text-black">
<p class="text-sky-700">

The text class above is the lightest sky that still passes AA on a white background.

Frequently asked questions

What is the hex code for Tailwind sky-500?

#0EA5E9 — RGB 14, 165, 233. Full values and contrast for #0EA5E9.

Which Tailwind sky shades can I use for text?

sky-700, sky-800, sky-900, sky-950 reach 4.5:1 against white and pass AA for normal text. Anything lighter fails, whatever it looks like on your monitor.

Should text on a sky background be black or white?

Black up to sky-600, white from sky-700 down. The two are never both comfortable: at the crossover neither reaches 4.5:1.

All Tailwind colours · Colour reference