#402045 color
The hex color #402045 is a very dark, desaturated magenta.
In the RGB color model it is made of 25.1% red, 12.5% green and 27.1% blue (64, 32, 69).
Its hue angle is 292°, with 37% saturation and 20% lightness. For print, the CMYK equivalent is 7% cyan, 54% magenta, 0% yellow and 73% black.
The closest named color is Purple Void (#442244), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.9:1).
#402045 color codes
| HEX | #402045 | |
|---|---|---|
| RGB | rgb(64, 32, 69) | |
| RGB percent | rgb(25.1%, 12.5%, 27.1%) | |
| HSL | hsl(292, 37%, 20%) | |
| HSV / HSB | hsv(292, 54%, 27%) | |
| CMYK | cmyk(7%, 54%, 0%, 73%) | |
| CIE LAB | lab(18.16, 22.31, -16.91) | |
| CIE LCH | lch(18.16, 27.99, 322.84) | |
| CIE XYZ | xyz(3.705, 2.553, 5.927) | |
| Decimal | 4202565 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #402045, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #402045 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.51:1 | Fail | Fail | Fail |
| Sample text | 13.9:1 | Pass | Pass | Pass |
| #402045 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.9:1 | Pass | Pass | Pass |
| Sample text | 1.51:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #402045 looks to people with the most common types of color vision deficiency.
#1b2a46Protanopia
no red cones#242e44Deuteranopia
no green cones#41252fTritanopia
no blue cones#2c2c2cAchromatopsia
no color vision
CSS examples
.background { background-color: #402045; }
.text { color: #402045; }
.border { border: 2px solid #402045; }
.transparent { background-color: rgb(64 32 69 / 50%); }
.gradient { background: linear-gradient(to right, #402045, #452038); }
Similar colors
#442244Purple Void#3b193fCreatures of the Night#4f284bMurasaki#441144Velvet Cosmos#431c53Plunged Into Darkness#301934Dark Purple#4a2559Wonka Purple#391531Nightly Voyager
Questions
- What color is #402045?
- #402045 is a very dark, desaturated magenta, closest to the named color Purple Void. It belongs to the purple family of colors.
- What is the RGB value of #402045?
- The RGB value is 64, 32, 69: 64 red, 32 green and 69 blue on a 0 to 255 scale.
- What is the complementary color of #402045?
- The complementary color is #254520, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #402045?
- White text. Black text has a contrast ratio of 1.51:1 and white text 13.9:1. WCAG asks for at least 4.5:1 for normal text.