Tailwind Gray 900

gray-900 · #111827 · rgb(17, 24, 39)

gray-900 is a very dark azure from the Tailwind CSS default palette, hex code #111827.

HEX#111827
RGBrgb(17, 24, 39)
HSLhsl(221, 39%, 11%)
CMYKcmyk(56%, 38%, 0%, 85%)
CSS variable (v4)var(--color-gray-900)
Color nameDark Navy (closest)

Classes

bg-gray-900
text-gray-900
border-gray-900
ring-gray-900
from-gray-900 via-gray-900 to-gray-900
bg-gray-900/50   /* 50% opacity */
White text · 17.74:1 · AAA
Black text · 1.18:1 · fails
text-gray-400 · 6.99:1 · AA

Check contrast with any color →

Tailwind gray-900: questions & answers

What is the HEX code of Tailwind gray-900?

Tailwind gray-900 is #111827, which is rgb(17, 24, 39) or hsl(221, 39%, 11%).

How do I use gray-900 as a background in Tailwind?

Add the class bg-gray-900 to the element. Use text-gray-900 for text and border-gray-900 for borders.

What text color works on bg-gray-900?

gray-400 (#9CA3AF) is the closest shade of the same color with readable contrast (6.99:1). Plain white text gives 17.74:1.