Tailwind Gray 400

gray-400 · #9CA3AF · rgb(156, 163, 175)

gray-400 is a light muted azure from the Tailwind CSS default palette, hex code #9CA3AF.

HEX#9CA3AF
RGBrgb(156, 163, 175)
HSLhsl(218, 11%, 65%)
CMYKcmyk(11%, 7%, 0%, 31%)
CSS variable (v4)var(--color-gray-400)
Color nameDark Gray (closest)

Classes

bg-gray-400
text-gray-400
border-gray-400
ring-gray-400
from-gray-400 via-gray-400 to-gray-400
bg-gray-400/50   /* 50% opacity */
White text · 2.54:1 · fails
Black text · 8.27:1 · AAA
text-gray-800 · 5.78:1 · AA

Check contrast with any color →

Tailwind gray-400: questions & answers

What is the HEX code of Tailwind gray-400?

Tailwind gray-400 is #9CA3AF, which is rgb(156, 163, 175) or hsl(218, 11%, 65%).

How do I use gray-400 as a background in Tailwind?

Add the class bg-gray-400 to the element. Use text-gray-400 for text and border-gray-400 for borders.

What text color works on bg-gray-400?

gray-800 (#1F2937) is the closest shade of the same color with readable contrast (5.78:1). Plain black text gives 8.27:1.