Tailwind Gray 800

gray-800 · #1F2937 · rgb(31, 41, 55)

gray-800 is a very dark muted azure from the Tailwind CSS default palette, hex code #1F2937.

HEX#1F2937
RGBrgb(31, 41, 55)
HSLhsl(215, 28%, 17%)
CMYKcmyk(44%, 25%, 0%, 78%)
CSS variable (v4)var(--color-gray-800)
Color nameOff Black (closest)

Classes

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

Check contrast with any color →

Tailwind gray-800: questions & answers

What is the HEX code of Tailwind gray-800?

Tailwind gray-800 is #1F2937, which is rgb(31, 41, 55) or hsl(215, 28%, 17%).

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

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

What text color works on bg-gray-800?

gray-400 (#9CA3AF) is the closest shade of the same color with readable contrast (5.78:1). Plain white text gives 14.68:1.