#51404E color
The hex color #51404E is a dark, grayish magenta.
In the RGB color model it is made of 31.8% red, 25.1% green and 30.6% blue (81, 64, 78).
Its hue angle is 311°, with 12% saturation and 28% lightness. For print, the CMYK equivalent is 0% cyan, 21% magenta, 4% yellow and 68% black.
The closest named color is Black Magic (#4F4554), a difference of 3.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.57:1).
#51404E color codes
| HEX | #51404E | |
|---|---|---|
| RGB | rgb(81, 64, 78) | |
| RGB percent | rgb(31.8%, 25.1%, 30.6%) | |
| HSL | hsl(311, 12%, 28%) | |
| HSV / HSB | hsv(311, 21%, 32%) | |
| CMYK | cmyk(0%, 21%, 4%, 68%) | |
| CIE LAB | lab(29.33, 10.15, -5.65) | |
| CIE LCH | lch(29.33, 11.62, 330.9) | |
| CIE XYZ | xyz(6.602, 5.966, 8.01) | |
| Decimal | 5324878 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51404E, 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 #51404E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.19:1 | Fail | Fail | Fail |
| Sample text | 9.57:1 | Pass | Pass | Pass |
| #51404E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.57:1 | Pass | Pass | Pass |
| Sample text | 2.19: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 #51404E looks to people with the most common types of color vision deficiency.
#40444fProtanopia
no red cones#44464dDeuteranopia
no green cones#534145Tritanopia
no blue cones#454545Achromatopsia
no color vision
CSS examples
.background { background-color: #51404e; }
.text { color: #51404e; }
.border { border: 2px solid #51404e; }
.transparent { background-color: rgb(81 64 78 / 50%); }
.gradient { background: linear-gradient(to right, #51404e, #514046); }
Similar colors
#4f4554Black Magic#443240Voodoo#403547Royal Decree#483c41Pitch Black#42364cCall It a Night#614051Eggplant#413d4bItalian Grape#4b373aVibrant Vine
Questions
- What color is #51404E?
- #51404E is a dark, grayish magenta, closest to the named color Black Magic. It belongs to the gray family of colors.
- What is the RGB value of #51404E?
- The RGB value is 81, 64, 78: 81 red, 64 green and 78 blue on a 0 to 255 scale.
- What is the complementary color of #51404E?
- The complementary color is #405143, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51404E?
- White text. Black text has a contrast ratio of 2.19:1 and white text 9.57:1. WCAG asks for at least 4.5:1 for normal text.