#402E74 color
The hex color #402E74 is a dark, desaturated violet.
In the RGB color model it is made of 25.1% red, 18% green and 45.5% blue (64, 46, 116).
Its hue angle is 255°, with 43% saturation and 32% lightness. For print, the CMYK equivalent is 45% cyan, 60% magenta, 0% yellow and 55% black.
The closest named color is Her Highness (#432E6F), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.28:1).
#402E74 color codes
| HEX | #402E74 | |
|---|---|---|
| RGB | rgb(64, 46, 116) | |
| RGB percent | rgb(25.1%, 18%, 45.5%) | |
| HSL | hsl(255, 43%, 32%) | |
| HSV / HSB | hsv(255, 60%, 45%) | |
| CMYK | cmyk(45%, 60%, 0%, 55%) | |
| CIE LAB | lab(24.65, 26.5, -37.65) | |
| CIE LCH | lch(24.65, 46.04, 305.15) | |
| CIE XYZ | xyz(6.243, 4.305, 17.022) | |
| Decimal | 4206196 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #402E74, 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 #402E74 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.86:1 | Fail | Fail | Fail |
| Sample text | 11.28:1 | Pass | Pass | Pass |
| #402E74 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.28:1 | Pass | Pass | Pass |
| Sample text | 1.86: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 #402E74 looks to people with the most common types of color vision deficiency.
#033c76Protanopia
no red cones#083972Deuteranopia
no green cones#313d4cTritanopia
no blue cones#3b3b3bAchromatopsia
no color vision
CSS examples
.background { background-color: #402e74; }
.text { color: #402e74; }
.border { border: 2px solid #402e74; }
.transparent { background-color: rgb(64 46 116 / 50%); }
.gradient { background: linear-gradient(to right, #402e74, #632e74); }
Similar colors
#432e6fHer Highness#48357bGalactic Compass#4b2c74Mystic Nights#443388Majestic Eggplant#332266Dark Dreams#332277Deep Space Rodeo#2e2364Indie Go#3a1f76Explorer of the Galaxies
Closest common color name: Dark Slate Blue.
Questions
- What color is #402E74?
- #402E74 is a dark, desaturated violet, closest to the named color Her Highness. It belongs to the purple family of colors.
- What is the RGB value of #402E74?
- The RGB value is 64, 46, 116: 64 red, 46 green and 116 blue on a 0 to 255 scale.
- What is the complementary color of #402E74?
- The complementary color is #62742E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #402E74?
- White text. Black text has a contrast ratio of 1.86:1 and white text 11.28:1. WCAG asks for at least 4.5:1 for normal text.