#2A236C Color

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

Color preview

#2A236C

Color formats

HEX
#2A236C
RGB
rgb(42, 35, 108)
RGBA
rgba(42, 35, 108, 1)
HSL
hsl(246, 51%, 28%)
HSV
hsv(246, 68%, 42%)
CMYK
cmyk(61%, 68%, 0%, 58%)
CSS variable
--color-primary: #2A236C;
Lowercase HEX
#2a236c

Shades

Tints

Tones

Harmony

CSS snippets for #2A236C

.color-2a236c {
  color: #2A236C;
  background-color: #2A236C;
}

Frequently asked questions

What color is #2A236C?+

#2A236C is a HEX color with RGB value rgb(42, 35, 108) and HSL value hsl(246, 51%, 28%). Its closest CSS named color is MidnightBlue.

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

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