Tailwind Neutral 300

neutral-300 · #D4D4D4 · rgb(212, 212, 212)

neutral-300 is a very light gray from the Tailwind CSS default palette, hex code #D4D4D4.

HEX#D4D4D4
RGBrgb(212, 212, 212)
HSLhsl(0, 0%, 83%)
CMYKcmyk(0%, 0%, 0%, 17%)
CSS variable (v4)var(--color-neutral-300)
Color nameLight Gray (closest)

Classes

bg-neutral-300
text-neutral-300
border-neutral-300
ring-neutral-300
from-neutral-300 via-neutral-300 to-neutral-300
bg-neutral-300/50   /* 50% opacity */
White text · 1.48:1 · fails
Black text · 14.17:1 · AAA
text-neutral-600 · 5.27:1 · AA

Check contrast with any color →

Tailwind neutral-300: questions & answers

What is the HEX code of Tailwind neutral-300?

Tailwind neutral-300 is #D4D4D4, which is rgb(212, 212, 212) or hsl(0, 0%, 83%).

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

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

What text color works on bg-neutral-300?

neutral-600 (#525252) is the closest shade of the same color with readable contrast (5.27:1). Plain black text gives 14.17:1.