#402551 color
The hex color #402551 is a dark, desaturated violet.
In the RGB color model it is made of 25.1% red, 14.5% green and 31.8% blue (64, 37, 81).
Its hue angle is 277°, with 37% saturation and 23% lightness. For print, the CMYK equivalent is 21% cyan, 54% magenta, 0% yellow and 68% black.
The closest named color is Acai (#48295B), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.11:1).
#402551 color codes
| HEX | #402551 | |
|---|---|---|
| RGB | rgb(64, 37, 81) | |
| RGB percent | rgb(25.1%, 14.5%, 31.8%) | |
| HSL | hsl(277, 37%, 23%) | |
| HSV / HSB | hsv(277, 54%, 32%) | |
| CMYK | cmyk(21%, 54%, 0%, 68%) | |
| CIE LAB | lab(20.07, 22.13, -22.05) | |
| CIE LCH | lch(20.07, 31.24, 315.1) | |
| CIE XYZ | xyz(4.261, 3.007, 8.139) | |
| Decimal | 4203857 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #402551, 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 #402551 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.6:1 | Fail | Fail | Fail |
| Sample text | 13.11:1 | Pass | Pass | Pass |
| #402551 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.11:1 | Pass | Pass | Pass |
| Sample text | 1.6: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 #402551 looks to people with the most common types of color vision deficiency.
#1a2f53Protanopia
no red cones#223150Deuteranopia
no green cones#3e2c37Tritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #402551; }
.text { color: #402551; }
.border { border: 2px solid #402551; }
.transparent { background-color: rgb(64 37 81 / 50%); }
.gradient { background: linear-gradient(to right, #402551, #51254c); }
Similar colors
#48295bAcai#4a2559Wonka Purple#372354Stormy Night#431c53Plunged Into Darkness#4f325eRoyal Crown#442244Purple Void#3b193fCreatures of the Night#372d52Midnight Pie
Closest common color name: Dark Purple.
Questions
- What color is #402551?
- #402551 is a dark, desaturated violet, closest to the named color Acai. It belongs to the purple family of colors.
- What is the RGB value of #402551?
- The RGB value is 64, 37, 81: 64 red, 37 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #402551?
- The complementary color is #365125, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #402551?
- White text. Black text has a contrast ratio of 1.6:1 and white text 13.11:1. WCAG asks for at least 4.5:1 for normal text.