#403A51 color
The hex color #403A51 is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22.7% green and 31.8% blue (64, 58, 81).
Its hue angle is 256°, with 17% saturation and 27% lightness. For print, the CMYK equivalent is 21% cyan, 28% magenta, 0% yellow and 68% black.
The closest named color is Maharaja (#3F354F), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.81:1).
#403A51 color codes
| HEX | #403A51 | |
|---|---|---|
| RGB | rgb(64, 58, 81) | |
| RGB percent | rgb(25.1%, 22.7%, 31.8%) | |
| HSL | hsl(256, 17%, 27%) | |
| HSV / HSB | hsv(256, 28%, 32%) | |
| CMYK | cmyk(21%, 28%, 0%, 68%) | |
| CIE LAB | lab(25.89, 8.17, -12.99) | |
| CIE LCH | lch(25.89, 15.34, 302.16) | |
| CIE XYZ | xyz(5.112, 4.71, 8.423) | |
| Decimal | 4209233 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #403A51, 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 #403A51 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.81:1 | Pass | Pass | Pass |
| #403A51 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.81:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #403A51 looks to people with the most common types of color vision deficiency.
#353d52Protanopia
no red cones#363d50Deuteranopia
no green cones#3d3e42Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #403a51; }
.text { color: #403a51; }
.border { border: 2px solid #403a51; }
.transparent { background-color: rgb(64 58 81 / 50%); }
.gradient { background: linear-gradient(to right, #403a51, #4b3a51); }
Similar colors
#3f354fMaharaja#42364cCall It a Night#403547Royal Decree#413d4bItalian Grape#333344Shuriken#3c2f4eSanctum of Shadows#4f4554Black Magic#2c2e47Midnight Masquerade
Closest common color name: Eggplant.
Questions
- What color is #403A51?
- #403A51 is a dark, grayish violet, closest to the named color Maharaja. It belongs to the purple family of colors.
- What is the RGB value of #403A51?
- The RGB value is 64, 58, 81: 64 red, 58 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #403A51?
- The complementary color is #4B513A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #403A51?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.81:1. WCAG asks for at least 4.5:1 for normal text.