In a RGB color space, #402f77 hex color is composed of 25.1% red, 18.4% green and 46.7% blue. Whereas in a CMYK color space, it is composed of 46.2% cyan, 60.5% magenta, 0% yellow and 53.3% black. It has a hue angle of 254.2 degrees, a saturation of 43.4% and a lightness of 32.5%. #402f77 color hex could be obtained by blending #805eee with #000000. Closest websafe color is: #333366.
The hexadecimal color #402f77 has RGB values of R:64, G:47, B:119 and CMYK values of C:0.46, M:0.61, Y:0, K:0.53. Its decimal value is 4206455.
Hex triplet | 402f77 | #402f77 |
RGB Decimal | 64, 47, 119 | rgb(64,47,119) |
RGB Percent | 25.1, 18.4, 46.7 | rgb(25.1%,18.4%,46.7%) |
CMYK | 46.2, 60.5, 0, 53.3 | |
HSL | 254.2°, 43.4, 32.5 | hsl(254.2,43.4%,32.5%) |
HSV(HSB) | 254.2°, 60.5, 46.7 | |
Web Safe | 333366 | #336 |
XYZ | 6.461, 4.455, 17.972 |
xyY | 0.224, 0.154, 4.455 |
CIE-LAB | 25.122, 26.807, -38.81 |
CIE-LCH | 25.122, 47.168, 304.634 |
CIE-LUV | 25.122, 1.739, -50.01 |
Hunter-Lab | 21.107, 17.701, -35.71 |
Binary | 01000000, 00101111, 01110111 |
Below, you can see some colors close to #402f77. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.
This text has a font color of #402f77.
<span style="color:#402f77">Text here</span>
This paragraph has a background color of #402f77.
<p style="background-color:#402f77;">Content here</p>
This element has a border color of #402f77.
<div style="border:1px #402f77;">Content here</div>
.text {color:#402f77;}
.background {background-color:#402f77;}
.border {border:1px solid #402f77;}
.text-shadow {border:1px solid #402f77;}
A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #07050c is the darkest color, while #fdfcfe is the lightest one.
A tone is produced by adding gray to any pure hue. In this case, #525254 is the less saturated color, while #2a06a0 is the most saturated one.