#111827 — Tints, Shades & Color Values

#111827

#111827 is a very dark, moderately saturated blue. In Tailwind CSS this exact color is the utility class gray-900 (e.g. bg-gray-900, text-gray-900). Its nearest CSS named color is black (#000000). For readable text on a #111827 background, white text gives the strongest contrast (17.74:1). Because it is dark, #111827 suits text, navigation bars, and footers on light backgrounds, and its tints make natural hover and surface colors.

Want to fine-tune this color interactively? Open #111827 in the tint & shade generator to explore the full lightness, hue, and chroma scales and copy any step.

Color Values

Hex#111827
RGBrgb(17, 24, 39)
HSLhsl(221, 39%, 11%)
HSV / HSB221°, 56%, 15%
Nearest namedblack (#000000)

Need these in another format? Use our hex to RGB converter for quick two-way conversion.

#111827 in Tailwind CSS (gray-900)

#111827 ships with Tailwind CSS as gray-900 — use it as bg-gray-900, text-gray-900, or border-gray-900. It sits at step 900 of the gray ramp; every other step links to its own page:

Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.

Tints of #111827 (Mixed with White)

Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.

Shades of #111827 (Mixed with Black)

Each step blends the base color toward black using new = old × (1 − factor).

WCAG Contrast & Accessibility

Contrast ratios for text placed on a #111827 background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).

Text color White text 17.74:1 — AA normal: Pass · AA large: Pass · AAA: Pass
Black text 1.18:1 — AA normal: Fail · AA large: Fail · AAA: Fail

If neither pure white nor pure black reaches the level you need, pick a lighter tint of #111827 from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.

More blue colors in the library: #0F172A (slate-900), #082F49 (sky-950), #020617 (slate-950), #1E293B (slate-800), #09090B (zinc-950), #1E1B4B (indigo-950).

Frequently Asked Questions

Browse more colors in the color library, or start from any hex code on the HexTints homepage.

Building a brand around #111827? Put it on a free link-in-bio page →