#40508C Color

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

Color preview

#40508C

Color formats

HEX
#40508C
RGB
rgb(64, 80, 140)
RGBA
rgba(64, 80, 140, 1)
HSL
hsl(227, 37%, 40%)
HSV
hsv(227, 54%, 55%)
CMYK
cmyk(54%, 43%, 0%, 45%)
CSS variable
--color-primary: #40508C;
Lowercase HEX
#40508c

Shades

Tints

Tones

Harmony

CSS snippets for #40508C

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

Frequently asked questions

What color is #40508C?+

#40508C is a HEX color with RGB value rgb(64, 80, 140) and HSL value hsl(227, 37%, 40%). Its closest CSS named color is DarkSlateBlue.

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

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