#51516D color
The hex color #51516D is a dark, grayish blue.
In the RGB color model it is made of 31.8% red, 31.8% green and 42.7% blue (81, 81, 109).
Its hue angle is 240°, with 15% saturation and 37% lightness. For print, the CMYK equivalent is 26% cyan, 26% magenta, 0% yellow and 57% black.
The closest named color is Majestic Magic (#555570), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.64:1).
#51516D color codes
| HEX | #51516D | |
|---|---|---|
| RGB | rgb(81, 81, 109) | |
| RGB percent | rgb(31.8%, 31.8%, 42.7%) | |
| HSL | hsl(240, 15%, 37%) | |
| HSV / HSB | hsv(240, 26%, 43%) | |
| CMYK | cmyk(26%, 26%, 0%, 57%) | |
| CIE LAB | lab(35.48, 6.82, -16.06) | |
| CIE LCH | lch(35.48, 17.45, 293.01) | |
| CIE XYZ | xyz(9.095, 8.738, 15.672) | |
| Decimal | 5329261 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #51516D, 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 #51516D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.75:1 | Fail | Fail | Fail |
| Sample text | 7.64:1 | Pass | Pass | Pass |
| #51516D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.64:1 | Pass | Pass | Pass |
| Sample text | 2.75: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 #51516D looks to people with the most common types of color vision deficiency.
#4a546eProtanopia
no red cones#49536cDeuteranopia
no green cones#4b565bTritanopia
no blue cones#535353Achromatopsia
no color vision
CSS examples
.background { background-color: #51516d; }
.text { color: #51516d; }
.border { border: 2px solid #51516d; }
.transparent { background-color: rgb(81 81 109 / 50%); }
.gradient { background: linear-gradient(to right, #51516d, #5f516d); }
Similar colors
#555570Majestic Magic#4d516cIntergalactic#565266Freefall#4f566cHeavy Violet#4c567aDeep Indigo#3e4364Genie#4e5481Dusk#525463Black Orchid
Closest common color name: Eggplant.
Questions
- What color is #51516D?
- #51516D is a dark, grayish blue, closest to the named color Majestic Magic. It belongs to the blue family of colors.
- What is the RGB value of #51516D?
- The RGB value is 81, 81, 109: 81 red, 81 green and 109 blue on a 0 to 255 scale.
- What is the complementary color of #51516D?
- The complementary color is #6D6D51, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #51516D?
- White text. Black text has a contrast ratio of 2.75:1 and white text 7.64:1. WCAG asks for at least 4.5:1 for normal text.