#402D9F Color

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

Color preview

#402D9F

Color formats

HEX
#402D9F
RGB
rgb(64, 45, 159)
RGBA
rgba(64, 45, 159, 1)
HSL
hsl(250, 56%, 40%)
HSV
hsv(250, 72%, 62%)
CMYK
cmyk(60%, 72%, 0%, 38%)
CSS variable
--color-primary: #402D9F;
Lowercase HEX
#402d9f

Shades

Tints

Tones

Harmony

CSS snippets for #402D9F

.color-402d9f {
  color: #402D9F;
  background-color: #402D9F;
}

Frequently asked questions

What color is #402D9F?+

#402D9F is a HEX color with RGB value rgb(64, 45, 159) and HSL value hsl(250, 56%, 40%). Its closest CSS named color is DarkSlateBlue.

What is the closest Tailwind color to #402D9F?+

The closest Tailwind color is indigo-800, available as the bg-indigo-800 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