#2840AF Color

Inspect #2840AF across formats, palettes, contrast and closest named color matches.

Color preview

#2840AF

Color formats

HEX
#2840AF
RGB
rgb(40, 64, 175)
RGBA
rgba(40, 64, 175, 1)
HSL
hsl(229, 63%, 42%)
HSV
hsv(229, 77%, 69%)
CMYK
cmyk(77%, 63%, 0%, 31%)
CSS variable
--color-primary: #2840AF;
Lowercase HEX
#2840af

Shades

Tints

Tones

Harmony

CSS snippets for #2840AF

.color-2840af {
  color: #2840AF;
  background-color: #2840AF;
}

Frequently asked questions

What color is #2840AF?+

#2840AF is a HEX color with RGB value rgb(40, 64, 175) and HSL value hsl(229, 63%, 42%). Its closest CSS named color is DarkSlateBlue.

What is the closest Tailwind color to #2840AF?+

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