#2A1971 Color

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

Color preview

#2A1971

Color formats

HEX
#2A1971
RGB
rgb(42, 25, 113)
RGBA
rgba(42, 25, 113, 1)
HSL
hsl(252, 64%, 27%)
HSV
hsv(252, 78%, 44%)
CMYK
cmyk(63%, 78%, 0%, 56%)
CSS variable
--color-primary: #2A1971;
Lowercase HEX
#2a1971

Shades

Tints

Tones

Harmony

CSS snippets for #2A1971

.color-2a1971 {
  color: #2A1971;
  background-color: #2A1971;
}

Frequently asked questions

What color is #2A1971?+

#2A1971 is a HEX color with RGB value rgb(42, 25, 113) and HSL value hsl(252, 64%, 27%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #2A1971?+

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