#402174 color
The hex color #402174 is a dark, moderate violet.
In the RGB color model it is made of 25.1% red, 12.9% green and 45.5% blue (64, 33, 116).
Its hue angle is 262°, with 56% saturation and 29% lightness. For print, the CMYK equivalent is 45% cyan, 72% magenta, 0% yellow and 55% black.
The closest named color is Explorer of the Galaxies (#3A1F76), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.44:1).
#402174 color codes
| HEX | #402174 | |
|---|---|---|
| RGB | rgb(64, 33, 116) | |
| RGB percent | rgb(25.1%, 12.9%, 45.5%) | |
| HSL | hsl(262, 56%, 29%) | |
| HSV / HSB | hsv(262, 72%, 45%) | |
| CMYK | cmyk(45%, 72%, 0%, 55%) | |
| CIE LAB | lab(21.72, 34.37, -42.4) | |
| CIE LCH | lch(21.72, 54.58, 309.03) | |
| CIE XYZ | xyz(5.81, 3.439, 16.877) | |
| Decimal | 4202868 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #402174, 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 #402174 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.69:1 | Fail | Fail | Fail |
| Sample text | 12.44:1 | Pass | Pass | Pass |
| #402174 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.44:1 | Pass | Pass | Pass |
| Sample text | 1.69: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 #402174 looks to people with the most common types of color vision deficiency.
#003576Protanopia
no red cones#003372Deuteranopia
no green cones#323547Tritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #402174; }
.text { color: #402174; }
.border { border: 2px solid #402174; }
.transparent { background-color: rgb(64 33 116 / 50%); }
.gradient { background: linear-gradient(to right, #402174, #692174); }
Similar colors
#3a1f76Explorer of the Galaxies#332277Deep Space Rodeo#442288Galactic Civilization#442266Fading Horizon#332266Dark Dreams#4b2c74Mystic Nights#4b1e87Occult#432e6fHer Highness
Closest common color name: Indigo.
Questions
- What color is #402174?
- #402174 is a dark, moderate violet, closest to the named color Explorer of the Galaxies. It belongs to the purple family of colors.
- What is the RGB value of #402174?
- The RGB value is 64, 33, 116: 64 red, 33 green and 116 blue on a 0 to 255 scale.
- What is the complementary color of #402174?
- The complementary color is #557421, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #402174?
- White text. Black text has a contrast ratio of 1.69:1 and white text 12.44:1. WCAG asks for at least 4.5:1 for normal text.