#505F7F color
The hex color #505F7F is a grayish blue.
In the RGB color model it is made of 31.4% red, 37.3% green and 49.8% blue (80, 95, 127).
Its hue angle is 221°, with 23% saturation and 41% lightness. For print, the CMYK equivalent is 37% cyan, 25% magenta, 0% yellow and 50% black.
The closest named color is Admiral Blue (#50647F), a difference of 3.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.39:1).
#505F7F color codes
| HEX | #505F7F | |
|---|---|---|
| RGB | rgb(80, 95, 127) | |
| RGB percent | rgb(31.4%, 37.3%, 49.8%) | |
| HSL | hsl(221, 23%, 41%) | |
| HSV / HSB | hsv(221, 37%, 50%) | |
| CMYK | cmyk(37%, 25%, 0%, 50%) | |
| CIE LAB | lab(40.28, 2.76, -19.76) | |
| CIE LCH | lch(40.28, 19.95, 277.94) | |
| CIE XYZ | xyz(11.23, 11.422, 21.687) | |
| Decimal | 5267327 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505F7F, 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 #505F7F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.28:1 | Fail | Fail | Pass |
| Sample text | 6.39:1 | Pass | Fail | Pass |
| #505F7F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.39:1 | Pass | Fail | Pass |
| Sample text | 3.28:1 | Fail | Fail | Pass |
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 #505F7F looks to people with the most common types of color vision deficiency.
#546180Protanopia
no red cones#505d7eDeuteranopia
no green cones#42666aTritanopia
no blue cones#5f5f5fAchromatopsia
no color vision
CSS examples
.background { background-color: #505f7f; }
.text { color: #505f7f; }
.border { border: 2px solid #505f7f; }
.transparent { background-color: rgb(80 95 127 / 50%); }
.gradient { background: linear-gradient(to right, #505f7f, #59507f); }
Similar colors
#50647fAdmiral Blue#4d5b88Wizard#445780Sailor#4c567aDeep Indigo#4f566cHeavy Violet#466590Sea of Galilee#4c6177Night Market#4e5481Dusk
Closest common color name: Space Gray.
Questions
- What color is #505F7F?
- #505F7F is a grayish blue, closest to the named color Admiral Blue. It belongs to the blue family of colors.
- What is the RGB value of #505F7F?
- The RGB value is 80, 95, 127: 80 red, 95 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #505F7F?
- The complementary color is #7F7050, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505F7F?
- White text. Black text has a contrast ratio of 3.28:1 and white text 6.39:1. WCAG asks for at least 4.5:1 for normal text.