#21218D Color

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

Color preview

#21218D

Color formats

HEX
#21218D
RGB
rgb(33, 33, 141)
RGBA
rgba(33, 33, 141, 1)
HSL
hsl(240, 62%, 34%)
HSV
hsv(240, 77%, 55%)
CMYK
cmyk(77%, 77%, 0%, 45%)
CSS variable
--color-primary: #21218D;
Lowercase HEX
#21218d

Shades

Tints

Tones

Harmony

CSS snippets for #21218D

.color-21218d {
  color: #21218D;
  background-color: #21218D;
}

Frequently asked questions

What color is #21218D?+

#21218D is a HEX color with RGB value rgb(33, 33, 141) and HSL value hsl(240, 62%, 34%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #21218D?+

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