#402D5D Color

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

Color preview

#402D5D

Color formats

HEX
#402D5D
RGB
rgb(64, 45, 93)
RGBA
rgba(64, 45, 93, 1)
HSL
hsl(264, 35%, 27%)
HSV
hsv(264, 52%, 36%)
CMYK
cmyk(31%, 52%, 0%, 64%)
CSS variable
--color-primary: #402D5D;
Lowercase HEX
#402d5d

Shades

Tints

Tones

Harmony

CSS snippets for #402D5D

.color-402d5d {
  color: #402D5D;
  background-color: #402D5D;
}

Frequently asked questions

What color is #402D5D?+

#402D5D is a HEX color with RGB value rgb(64, 45, 93) and HSL value hsl(264, 35%, 27%). Its closest CSS named color is DarkSlateGray.

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

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