In RGB color space, #040c8a hex color has a red value of 4, a green value of 12 and a blue value of 138.
In CMYK color space (used in color printing), #040c8a hex color is composed of 97.1% cyan, 91.3% magenta, 0% yellow and 45.88% black.
#040c8a color has a hue of 236.4 degrees, a saturation of 94.37% and a lightness of 27.8%.
#040c8a hex color contains mainly BLUE.
The closest web safe color of #040c8a is #000099
#040c8a hex color has a decimal value of 265354.
HEX | 040c8a | #040c8a |
---|---|---|
RGB | 4, 12, 138 | rgb(4, 12, 138) |
RGB Percent | 1.57, 4.71, 54.12 | rgb(1.57, 4.71, 54.12) |
CMYK | 97, 91, 0, 46 | |
HSL | 236.4°, 94.37, 27.8 | hsl(236.4, 94.37%, 27.8%) |
HSV | 236.4°, 97.1, 54.1 |
XYZ | 4.769, 2.124, 24.203 |
---|---|
Hunter Lab | 14.574, 32.906, -88.261 |
CIE-LAB | 16.125, 45.947, -65.765 |
CIE-LCH | 16.125, 80.226, 304.94 |
CIE-LUV | 97.1, 91.3, 0, 45.88 |
Web Safe | 000099 |
RGB percent of color #040c8a
CMYK percent of color #040c8a
Text with hexadecimal color #040c8a
This text has a font color of #040c8a
<p style="color:#040c8a">Text here</p>
#040c8a Background Color
This box has a background color of #040c8a
<div style="background-color:#040c8a">Text here</div>
#040c8a Border Color
This box has a border color of #040c8a
<div style="border: 4px solid #040c8a">Text here</div>
CSS codes
<p style="color:#040c8a">Text here</p>
<div style="background-color:#040c8a">Text here</div>
<div style="border: 4px solid #040c8a">Text here</div>
#040c8a Color on white background
This is how a font and box color of #040c8a will look
on a white background.
#040c8a Color on black background
This is how a font and box color of #040c8a hex color will look
on a black background.