In RGB color space, #040cd2 hex color has a red value of 4, a green value of 12 and a blue value of 210.
In CMYK color space (used in color printing), #040cd2 hex color is composed of 98.1% cyan, 94.29% magenta, 0% yellow and 17.65% black.
#040cd2 color has a hue of 237.7 degrees, a saturation of 96.26% and a lightness of 42%.
#040cd2 hex color contains mainly BLUE.
The closest web safe color of #040cd2 is #0000cc
#040cd2 hex color has a decimal value of 265426.
HEX | 040cd2 | #040cd2 |
---|---|---|
RGB | 4, 12, 210 | rgb(4, 12, 210) |
RGB Percent | 1.57, 4.71, 82.35 | rgb(1.57, 4.71, 82.35) |
CMYK | 98, 94, 0, 18 | |
HSL | 237.7°, 96.26, 42 | hsl(237.7, 96.26%, 42%) |
HSV | 237.7°, 98.1, 82.4 |
XYZ | 11.814, 4.942, 61.304 |
---|---|
Hunter Lab | 22.231, 55.957, -147.939 |
CIE-LAB | 26.569, 66.043, -91.753 |
CIE-LCH | 26.569, 113.05, 305.746 |
CIE-LUV | 98.1, 94.29, 0, 17.65 |
Web Safe | 0000cc |
RGB percent of color #040cd2
CMYK percent of color #040cd2
Text with hexadecimal color #040cd2
This text has a font color of #040cd2
<p style="color:#040cd2">Text here</p>
#040cd2 Background Color
This box has a background color of #040cd2
<div style="background-color:#040cd2">Text here</div>
#040cd2 Border Color
This box has a border color of #040cd2
<div style="border: 4px solid #040cd2">Text here</div>
CSS codes
<p style="color:#040cd2">Text here</p>
<div style="background-color:#040cd2">Text here</div>
<div style="border: 4px solid #040cd2">Text here</div>
#040cd2 Color on white background
This is how a font and box color of #040cd2 will look
on a white background.
#040cd2 Color on black background
This is how a font and box color of #040cd2 hex color will look
on a black background.