Tailwind Gray 300

gray-300 · #D1D5DB · rgb(209, 213, 219)

gray-300 is a very light muted azure from the Tailwind CSS default palette, hex code #D1D5DB.

HEX#D1D5DB
RGBrgb(209, 213, 219)
HSLhsl(216, 12%, 84%)
CMYKcmyk(5%, 3%, 0%, 14%)
CSS variable (v4)var(--color-gray-300)
Color nameLight Gray (closest)

Classes

bg-gray-300
text-gray-300
border-gray-300
ring-gray-300
from-gray-300 via-gray-300 to-gray-300
bg-gray-300/50   /* 50% opacity */
White text · 1.47:1 · fails
Black text · 14.25:1 · AAA
text-gray-600 · 5.13:1 · AA

Check contrast with any color →

Tailwind gray-300: questions & answers

What is the HEX code of Tailwind gray-300?

Tailwind gray-300 is #D1D5DB, which is rgb(209, 213, 219) or hsl(216, 12%, 84%).

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

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

What text color works on bg-gray-300?

gray-600 (#4B5563) is the closest shade of the same color with readable contrast (5.13:1). Plain black text gives 14.25:1.