Tailwind Neutral 900

neutral-900 · #171717 · rgb(23, 23, 23)

neutral-900 is a very dark black from the Tailwind CSS default palette, hex code #171717.

HEX#171717
RGBrgb(23, 23, 23)
HSLhsl(0, 0%, 9%)
CMYKcmyk(0%, 0%, 0%, 91%)
CSS variable (v4)var(--color-neutral-900)
Color nameDark Brown (closest)

Classes

bg-neutral-900
text-neutral-900
border-neutral-900
ring-neutral-900
from-neutral-900 via-neutral-900 to-neutral-900
bg-neutral-900/50   /* 50% opacity */
White text · 17.93:1 · AAA
Black text · 1.17:1 · fails
text-neutral-400 · 7.11:1 · AAA

Check contrast with any color →

Tailwind neutral-900: questions & answers

What is the HEX code of Tailwind neutral-900?

Tailwind neutral-900 is #171717, which is rgb(23, 23, 23) or hsl(0, 0%, 9%).

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

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

What text color works on bg-neutral-900?

neutral-400 (#A3A3A3) is the closest shade of the same color with readable contrast (7.11:1). Plain white text gives 17.93:1.