Tailwind Blue 500

blue-500 · #3B82F6 · rgb(59, 130, 246)

blue-500 is a light vivid azure from the Tailwind CSS default palette, hex code #3B82F6.

HEX#3B82F6
RGBrgb(59, 130, 246)
HSLhsl(217, 91%, 60%)
CMYKcmyk(76%, 47%, 0%, 4%)
CSS variable (v4)var(--color-blue-500)
Color nameDodger Blue (closest)

Classes

bg-blue-500
text-blue-500
border-blue-500
ring-blue-500
from-blue-500 via-blue-500 to-blue-500
bg-blue-500/50   /* 50% opacity */
White text · 3.68:1 · AA (large text only)
Black text · 5.71:1 · AA

Check contrast with any color →

Tailwind blue-500: questions & answers

What is the HEX code of Tailwind blue-500?

Tailwind blue-500 is #3B82F6, which is rgb(59, 130, 246) or hsl(217, 91%, 60%).

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

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

What text color works on bg-blue-500?

Black text gives the best contrast: 5.71:1.