In RGB color space, #042540 hex color has a red value of 4, a green value of 37 and a blue value of 64.
In CMYK color space (used in color printing), #042540 hex color is composed of 93.75% cyan, 42.19% magenta, 0% yellow and 74.9% black.
#042540 color has a hue of 207 degrees, a saturation of 88.24% and a lightness of 13.3%.
#042540 hex color contains mainly BLUE.
The closest web safe color of #042540 is #003333
#042540 hex color has a decimal value of 271680.
HEX | 042540 | #042540 |
---|---|---|
RGB | 4, 37, 64 | rgb(4, 37, 64) |
RGB Percent | 1.57, 14.51, 25.1 | rgb(1.57, 14.51, 25.1) |
CMYK | 94, 42, 0, 75 | |
HSL | 207°, 88.24, 13.3 | hsl(207, 88.24%, 13.3%) |
HSV | 207°, 93.8, 25.1 |
XYZ | 1.637, 1.719, 5.096 |
---|---|
Hunter Lab | 13.111, -0.657, -13.867 |
CIE-LAB | 13.938, 0.083, -20.459 |
CIE-LCH | 13.938, 20.459, 270.232 |
CIE-LUV | 93.75, 42.19, 0, 74.9 |
Web Safe | 003333 |
RGB percent of color #042540
CMYK percent of color #042540
Text with hexadecimal color #042540
This text has a font color of #042540
<p style="color:#042540">Text here</p>
#042540 Background Color
This box has a background color of #042540
<div style="background-color:#042540">Text here</div>
#042540 Border Color
This box has a border color of #042540
<div style="border: 4px solid #042540">Text here</div>
CSS codes
<p style="color:#042540">Text here</p>
<div style="background-color:#042540">Text here</div>
<div style="border: 4px solid #042540">Text here</div>
#042540 Color on white background
This is how a font and box color of #042540 will look
on a white background.
#042540 Color on black background
This is how a font and box color of #042540 hex color will look
on a black background.