Tailwind Blue 400

blue-400 · #60A5FA · rgb(96, 165, 250)

blue-400 is a light vivid azure from the Tailwind CSS default palette, hex code #60A5FA.

HEX#60A5FA
RGBrgb(96, 165, 250)
HSLhsl(213, 94%, 68%)
CMYKcmyk(62%, 34%, 0%, 2%)
CSS variable (v4)var(--color-blue-400)
Color nameCornflower Blue (closest)

Classes

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

Check contrast with any color →

Tailwind blue-400: questions & answers

What is the HEX code of Tailwind blue-400?

Tailwind blue-400 is #60A5FA, which is rgb(96, 165, 250) or hsl(213, 94%, 68%).

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

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

What text color works on bg-blue-400?

blue-950 (#172554) is the closest shade of the same color with readable contrast (5.78:1). Plain black text gives 8.26:1.