Tailwind Neutral 700

neutral-700 · #404040 · rgb(64, 64, 64)

neutral-700 is a dark gray from the Tailwind CSS default palette, hex code #404040.

HEX#404040
RGBrgb(64, 64, 64)
HSLhsl(0, 0%, 25%)
CMYKcmyk(0%, 0%, 0%, 75%)
CSS variable (v4)var(--color-neutral-700)
Color nameOnyx (closest)

Classes

bg-neutral-700
text-neutral-700
border-neutral-700
ring-neutral-700
from-neutral-700 via-neutral-700 to-neutral-700
bg-neutral-700/50   /* 50% opacity */
White text · 10.37:1 · AAA
Black text · 2.03:1 · fails
text-neutral-300 · 6.99:1 · AA

Check contrast with any color →

Tailwind neutral-700: questions & answers

What is the HEX code of Tailwind neutral-700?

Tailwind neutral-700 is #404040, which is rgb(64, 64, 64) or hsl(0, 0%, 25%).

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

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

What text color works on bg-neutral-700?

neutral-300 (#D4D4D4) is the closest shade of the same color with readable contrast (6.99:1). Plain white text gives 10.37:1.