#402D6C Color

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

Color preview

#402D6C

Color formats

HEX
#402D6C
RGB
rgb(64, 45, 108)
RGBA
rgba(64, 45, 108, 1)
HSL
hsl(258, 41%, 30%)
HSV
hsv(258, 58%, 42%)
CMYK
cmyk(41%, 58%, 0%, 58%)
CSS variable
--color-primary: #402D6C;
Lowercase HEX
#402d6c

Shades

Tints

Tones

Harmony

CSS snippets for #402D6C

.color-402d6c {
  color: #402D6C;
  background-color: #402D6C;
}

Frequently asked questions

What color is #402D6C?+

#402D6C is a HEX color with RGB value rgb(64, 45, 108) and HSL value hsl(258, 41%, 30%). Its closest CSS named color is DarkSlateBlue.

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

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