#402540 Color Information
In a RGB color space, hex #402540 is composed of 25.1% red, 14.5% green and 25.1% blue. Whereas in a CMYK color space, it is composed of 0% cyan, 42.2% magenta, 0% yellow and 74.9% black. It has a hue angle of 300 degrees, a saturation of 26.7% and a lightness of 19.8%. #402540 color hex could be obtained by blending #804a80 with #000000. Closest websafe color is: #333333.
-
- R 25
- G 15
- B 25
-
- C 0
- M 42
- Y 0
- K 75
● #402540 color description : Very dark desaturated magenta.
#402540 Color Conversion
The hexadecimal color #402540 has RGB values of R:64, G:37, B:64 and CMYK values of C:0, M:0.42, Y:0, K:0.75. Its decimal value is 4203840.
| Hex triplet | 402540 | #402540 |
|---|---|---|
| RGB Decimal | 64, 37, 64 | rgb(64,37,64) |
| RGB Percent | 25.1, 14.5, 25.1 | rgb(25.1%,14.5%,25.1%) |
| CMYK | 0, 42, 0, 75 | |
| HSL | 300°, 26.7, 19.8 | hsl(300,26.7%,19.8%) |
| HSV (or HSB) | 300°, 42.2, 25.1 | |
| Web Safe | 333333 | #333333 |
| CIE-LAB | 19.155, 17.946, -11.916 |
|---|---|
| XYZ | 3.701, 2.783, 5.193 |
| xyY | 0.317, 0.238, 2.783 |
| CIE-LCH | 19.155, 21.542, 326.417 |
| CIE-LUV | 19.155, 11.142, -14.41 |
| Hunter-Lab | 16.684, 10.404, -6.775 |
| Binary | 01000000, 00100101, 01000000 |
Color Schemes with #402540
Alternatives to #402540
Below, you can see some colors close to #402540. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.
#402540 Preview
This text has a font color of #402540.
<span style="color:#402540;">Text here</span>
This paragraph has a background color of #402540.
<p style="background-color:#402540;">Content here</p>
This element has a border color of #402540.
<div style="border:1px solid #402540;">Content here</div>
.text {color:#402540;}
.background {background-color:#402540;}
.border {border:1px solid #402540;}
Shades and Tints of #402540
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, #020102 is the darkest color, while #f9f4f9 is the lightest one.
-
#020102
#020102rgb(2,1,2) -
#0e080e
#0e080ergb(14,8,14) -
#1b0f1b
#1b0f1brgb(27,15,27) -
#271727
#271727rgb(39,23,39) -
#341e34
#341e34rgb(52,30,52) -
#402540
#402540rgb(64,37,64) -
#4c2c4c
#4c2c4crgb(76,44,76) -
#593359
#593359rgb(89,51,89) -
#653b65
#653b65rgb(101,59,101) -
#724272
#724272rgb(114,66,114) -
#7e497e
#7e497ergb(126,73,126) -
#8b508b
#8b508brgb(139,80,139) -
#975797
#975797rgb(151,87,151)
-
#a35fa3
#a35fa3rgb(163,95,163) -
#aa6caa
#aa6caargb(170,108,170) -
#b178b1
#b178b1rgb(177,120,177) -
#b885b8
#b885b8rgb(184,133,184) -
#bf91bf
#bf91bfrgb(191,145,191) -
#c79dc7
#c79dc7rgb(199,157,199) -
#ceaace
#ceaacergb(206,170,206) -
#d5b6d5
#d5b6d5rgb(213,182,213) -
#dcc3dc
#dcc3dcrgb(220,195,220) -
#e3cfe3
#e3cfe3rgb(227,207,227) -
#ebdceb
#ebdcebrgb(235,220,235) -
#f2e8f2
#f2e8f2rgb(242,232,242) -
#f9f4f9
#f9f4f9rgb(249,244,249)
Tones of #402540
A tone is produced by adding gray to any pure hue. In this case, #343134 is the less saturated color, while #630263 is the most saturated one.
-
#343134
#343134rgb(52,49,52) -
#382d38
#382d38rgb(56,45,56) -
#3c293c
#3c293crgb(60,41,60) -
#402540
#402540rgb(64,37,64) -
#442144
#442144rgb(68,33,68) -
#481d48
#481d48rgb(72,29,72) -
#4c194c
#4c194crgb(76,25,76) -
#501550
#501550rgb(80,21,80) -
#531253
#531253rgb(83,18,83) -
#570e57
#570e57rgb(87,14,87) -
#5b0a5b
#5b0a5brgb(91,10,91) -
#5f065f
#5f065frgb(95,6,95) -
#630263
#630263rgb(99,2,99)
Color Blindness Simulator
Below, you can see how #402540 is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.
