Tailwind Neutral 800

neutral-800 · #262626 · rgb(38, 38, 38)

neutral-800 is a very dark gray from the Tailwind CSS default palette, hex code #262626.

HEX#262626
RGBrgb(38, 38, 38)
HSLhsl(0, 0%, 15%)
CMYKcmyk(0%, 0%, 0%, 85%)
CSS variable (v4)var(--color-neutral-800)
Color nameCocoa Brown (closest)

Classes

bg-neutral-800
text-neutral-800
border-neutral-800
ring-neutral-800
from-neutral-800 via-neutral-800 to-neutral-800
bg-neutral-800/50   /* 50% opacity */
White text · 15.13:1 · AAA
Black text · 1.39:1 · fails
text-neutral-400 · 6:1 · AA

Check contrast with any color →

Tailwind neutral-800: questions & answers

What is the HEX code of Tailwind neutral-800?

Tailwind neutral-800 is #262626, which is rgb(38, 38, 38) or hsl(0, 0%, 15%).

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

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

What text color works on bg-neutral-800?

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