Tailwind Blue 800

blue-800 · #1E40AF · rgb(30, 64, 175)

blue-800 is a medium vivid blue from the Tailwind CSS default palette, hex code #1E40AF.

HEX#1E40AF
RGBrgb(30, 64, 175)
HSLhsl(226, 71%, 40%)
CMYKcmyk(83%, 63%, 0%, 31%)
CSS variable (v4)var(--color-blue-800)
Color nameDenim (closest)

Classes

bg-blue-800
text-blue-800
border-blue-800
ring-blue-800
from-blue-800 via-blue-800 to-blue-800
bg-blue-800/50   /* 50% opacity */
White text · 8.72:1 · AAA
Black text · 2.41:1 · fails
text-blue-300 · 4.84:1 · AA

Check contrast with any color →

Tailwind blue-800: questions & answers

What is the HEX code of Tailwind blue-800?

Tailwind blue-800 is #1E40AF, which is rgb(30, 64, 175) or hsl(226, 71%, 40%).

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

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

What text color works on bg-blue-800?

blue-300 (#93C5FD) is the closest shade of the same color with readable contrast (4.84:1). Plain white text gives 8.72:1.