#1F40B6 Color

Inspect #1F40B6 across formats, palettes, contrast and closest named color matches.

Color preview

#1F40B6

Color formats

HEX
#1F40B6
RGB
rgb(31, 64, 182)
RGBA
rgba(31, 64, 182, 1)
HSL
hsl(227, 71%, 42%)
HSV
hsv(227, 83%, 71%)
CMYK
cmyk(83%, 65%, 0%, 29%)
CSS variable
--color-primary: #1F40B6;
Lowercase HEX
#1f40b6

Shades

Tints

Tones

Harmony

CSS snippets for #1F40B6

.color-1f40b6 {
  color: #1F40B6;
  background-color: #1F40B6;
}

Frequently asked questions

What color is #1F40B6?+

#1F40B6 is a HEX color with RGB value rgb(31, 64, 182) and HSL value hsl(227, 71%, 42%). Its closest CSS named color is DarkSlateBlue.

What is the closest Tailwind color to #1F40B6?+

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