#400080 Color

Inspect #400080 across formats, palettes, contrast and closest named color matches.

Color preview

#400080

Color formats

HEX
#400080
RGB
rgb(64, 0, 128)
RGBA
rgba(64, 0, 128, 1)
HSL
hsl(270, 100%, 25%)
HSV
hsv(270, 100%, 50%)
CMYK
cmyk(50%, 100%, 0%, 50%)
CSS variable
--color-primary: #400080;
Lowercase HEX
#400080

Shades

Tints

Tones

Harmony

CSS snippets for #400080

.color-400080 {
  color: #400080;
  background-color: #400080;
}

Frequently asked questions

What color is #400080?+

#400080 is a HEX color with RGB value rgb(64, 0, 128) and HSL value hsl(270, 100%, 25%). Its closest CSS named color is Indigo.

What is the closest Tailwind color to #400080?+

The closest Tailwind color is purple-950, available as the bg-purple-950 utility class.

Can I use this color in CSS?+

Yes. You can use the HEX, RGB, HSL or CSS variable output directly in CSS.

Related tools