#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
    RGB color chart
    • C 0
    • M 42
    • Y 0
    • K 75
    CMYK color chart

#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

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

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.

Similar Colors

#402540 Preview

Text with hexadecimal color #402540

This text has a font color of #402540.

<span style="color:#402540;">Text here</span>
#402540 background color

This paragraph has a background color of #402540.

<p style="background-color:#402540;">Content here</p>
#402540 border color

This element has a border color of #402540.

<div style="border:1px solid #402540;">Content here</div>
CSS codes
.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.

Shade Color Variation
Tint Color Variation

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.

Tone Color Variation

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.

Monochromacy
  • #303030 Achromatopsia 0.005% of the population
  • #332e33 Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #31384f Protanopia 1% of men
  • #363847 Deuteranopia 1% of men
  • #473437 Tritanopia 0.001% of the population
Trichromacy
  • #363149 Protanomaly 1% of men, 0.01% of women
  • #3a3144 Deuteranomaly 6% of men, 0.4% of women
  • #442e3a Tritanomaly 0.01% of the population