#2A2F6F Color

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

Color preview

#2A2F6F

Color formats

HEX
#2A2F6F
RGB
rgb(42, 47, 111)
RGBA
rgba(42, 47, 111, 1)
HSL
hsl(236, 45%, 30%)
HSV
hsv(236, 62%, 44%)
CMYK
cmyk(62%, 58%, 0%, 56%)
CSS variable
--color-primary: #2A2F6F;
Lowercase HEX
#2a2f6f

Shades

Tints

Tones

Harmony

CSS snippets for #2A2F6F

.color-2a2f6f {
  color: #2A2F6F;
  background-color: #2A2F6F;
}

Frequently asked questions

What color is #2A2F6F?+

#2A2F6F is a HEX color with RGB value rgb(42, 47, 111) and HSL value hsl(236, 45%, 30%). Its closest CSS named color is MidnightBlue.

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

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