In RGB color space, #402840 hex color has a red value of 64, a green value of 40 and a blue value of 64.
In CMYK color space (used in color printing), #402840 hex color is composed of 0% cyan, 37.5% magenta, 0% yellow and 74.9% black.
#402840 color has a hue of 300 degrees, a saturation of 23.08% and a lightness of 20.4%.
#402840 hex color contains mainly RED.
The closest web safe color of #402840 is #333333
#402840 hex color has a decimal value of 4204608.
HEX | 402840 | #402840 |
---|---|---|
RGB | 64, 40, 64 | rgb(64, 40, 64) |
RGB Percent | 25.1, 15.69, 25.1 | rgb(25.1, 15.69, 25.1) |
CMYK | 0, 38, 0, 75 | |
HSL | 300°, 23.08, 20.4 | hsl(300, 23.08%, 20.4%) |
HSV | 300°, 37.5, 25.1 |
XYZ | 3.799, 2.978, 5.225 |
---|---|
Hunter Lab | 17.257, 9.096, -5.872 |
CIE-LAB | 19.956, 15.973, -10.686 |
CIE-LCH | 19.956, 19.218, 326.217 |
CIE-LUV | 0, 37.5, 0, 74.9 |
Web Safe | 333333 |
RGB percent of color #402840
CMYK percent of color #402840
Text with hexadecimal color #402840
This text has a font color of #402840
<p style="color:#402840">Text here</p>
#402840 Background Color
This box has a background color of #402840
<div style="background-color:#402840">Text here</div>
#402840 Border Color
This box has a border color of #402840
<div style="border: 4px solid #402840">Text here</div>
CSS codes
<p style="color:#402840">Text here</p>
<div style="background-color:#402840">Text here</div>
<div style="border: 4px solid #402840">Text here</div>
#402840 Color on white background
This is how a font and box color of #402840 will look
on a white background.
#402840 Color on black background
This is how a font and box color of #402840 hex color will look
on a black background.