#28127C Color

Inspect #28127C across formats, palettes, contrast and closest named color matches.

Color preview

#28127C

Color formats

HEX
#28127C
RGB
rgb(40, 18, 124)
RGBA
rgba(40, 18, 124, 1)
HSL
hsl(252, 75%, 28%)
HSV
hsv(252, 85%, 49%)
CMYK
cmyk(68%, 85%, 0%, 51%)
CSS variable
--color-primary: #28127C;
Lowercase HEX
#28127c

Shades

Tints

Tones

Harmony

CSS snippets for #28127C

.color-28127c {
  color: #28127C;
  background-color: #28127C;
}

Frequently asked questions

What color is #28127C?+

#28127C is a HEX color with RGB value rgb(40, 18, 124) and HSL value hsl(252, 75%, 28%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #28127C?+

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