#040CF6 Color

Inspect #040CF6 across formats, palettes, contrast and closest named color matches.

Color preview

#040CF6

Color formats

HEX
#040CF6
RGB
rgb(4, 12, 246)
RGBA
rgba(4, 12, 246, 1)
HSL
hsl(238, 97%, 49%)
HSV
hsv(238, 98%, 96%)
CMYK
cmyk(98%, 95%, 0%, 4%)
CSS variable
--color-primary: #040CF6;
Lowercase HEX
#040cf6

Shades

Tints

Tones

Harmony

CSS snippets for #040CF6

.color-040cf6 {
  color: #040CF6;
  background-color: #040CF6;
}

Frequently asked questions

What color is #040CF6?+

#040CF6 is a HEX color with RGB value rgb(4, 12, 246) and HSL value hsl(238, 97%, 49%). Its closest CSS named color is Blue.

What is the closest Tailwind color to #040CF6?+

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