In RGB color space, #4042b2 hex color has a red value of 64, a green value of 66 and a blue value of 178.
In CMYK color space (used in color printing), #4042b2 hex color is composed of 64.04% cyan, 62.92% magenta, 0% yellow and 30.2% black.
#4042b2 color has a hue of 238.9 degrees, a saturation of 47.11% and a lightness of 47.5%.
#4042b2 hex color contains mainly BLUE.
The closest web safe color of #4042b2 is #333399
#4042b2 hex color has a decimal value of 4211378.
HEX | 4042b2 | #4042b2 |
---|---|---|
RGB | 64, 66, 178 | rgb(64, 66, 178) |
RGB Percent | 25.1, 25.88, 69.8 | rgb(25.1, 25.88, 69.8) |
CMYK | 64, 63, 0, 30 | |
HSL | 238.9°, 47.11, 47.5 | hsl(238.9, 47.11%, 47.5%) |
HSV | 238.9°, 64, 69.8 |
XYZ | 12.098, 8.201, 43.065 |
---|---|
Hunter Lab | 28.637, 25.293, -69.114 |
CIE-LAB | 34.398, 34.281, -59.915 |
CIE-LCH | 34.398, 69.029, 299.776 |
CIE-LUV | 64.04, 62.92, 0, 30.2 |
Web Safe | 333399 |
RGB percent of color #4042b2
CMYK percent of color #4042b2
Text with hexadecimal color #4042b2
This text has a font color of #4042b2
<p style="color:#4042b2">Text here</p>
#4042b2 Background Color
This box has a background color of #4042b2
<div style="background-color:#4042b2">Text here</div>
#4042b2 Border Color
This box has a border color of #4042b2
<div style="border: 4px solid #4042b2">Text here</div>
CSS codes
<p style="color:#4042b2">Text here</p>
<div style="background-color:#4042b2">Text here</div>
<div style="border: 4px solid #4042b2">Text here</div>
#4042b2 Color on white background
This is how a font and box color of #4042b2 will look
on a white background.
#4042b2 Color on black background
This is how a font and box color of #4042b2 hex color will look
on a black background.