#51404E color

#51404E rgb(81, 64, 78)
Shades of gray

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
RGBrgb(81, 64, 78)
RGB percentrgb(31.8%, 25.1%, 30.6%)
HSLhsl(311, 12%, 28%)
HSV / HSBhsv(311, 21%, 32%)
CMYKcmyk(0%, 21%, 4%, 68%)
CIE LABlab(29.33, 10.15, -5.65)
CIE LCHlch(29.33, 11.62, 330.9)
CIE XYZxyz(6.602, 5.966, 8.01)
Decimal5324878
Short hexNone (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 #51404ERatioAAAAAAA large
Sample text2.19:1FailFailFail
Sample text9.57:1PassPassPass
#51404E as text onRatioAAAAAAA large
Sample text9.57:1PassPassPass
Sample text2.19:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.