#505A6F color
The hex color #505A6F is a dark, grayish blue.
In the RGB color model it is made of 31.4% red, 35.3% green and 43.5% blue (80, 90, 111).
Its hue angle is 221°, with 16% saturation and 37% lightness. For print, the CMYK equivalent is 28% cyan, 19% magenta, 0% yellow and 56% black.
The closest named color is Heavy Violet (#4F566C), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.92:1).
#505A6F color codes
| HEX | #505A6F | |
|---|---|---|
| RGB | rgb(80, 90, 111) | |
| RGB percent | rgb(31.4%, 35.3%, 43.5%) | |
| HSL | hsl(221, 16%, 37%) | |
| HSV / HSB | hsv(221, 28%, 44%) | |
| CMYK | cmyk(28%, 19%, 0%, 56%) | |
| CIE LAB | lab(38.14, 1.37, -13.24) | |
| CIE LCH | lch(38.14, 13.32, 275.91) | |
| CIE XYZ | xyz(9.833, 10.165, 16.48) | |
| Decimal | 5266031 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505A6F, 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 #505A6F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.03:1 | Fail | Fail | Pass |
| Sample text | 6.92:1 | Pass | Fail | Pass |
| #505A6F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.92:1 | Pass | Fail | Pass |
| Sample text | 3.03: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 #505A6F looks to people with the most common types of color vision deficiency.
#535b70Protanopia
no red cones#50596fDeuteranopia
no green cones#485e61Tritanopia
no blue cones#5a5a5aAchromatopsia
no color vision
CSS examples
.background { background-color: #505a6f; }
.text { color: #505a6f; }
.border { border: 2px solid #505a6f; }
.transparent { background-color: rgb(80 90 111 / 50%); }
.gradient { background: linear-gradient(to right, #505a6f, #55506f); }
Similar colors
#4f566cHeavy Violet#4d5a6bStorm Rising#44556bInkjet#425267Into the Stratosphere#5c606eConcrete Landscape#525463Black Orchid#545663Blackwater#566373Midnight Shadow
Closest common color name: Charcoal.
Questions
- What color is #505A6F?
- #505A6F is a dark, grayish blue, closest to the named color Heavy Violet. It belongs to the blue family of colors.
- What is the RGB value of #505A6F?
- The RGB value is 80, 90, 111: 80 red, 90 green and 111 blue on a 0 to 255 scale.
- What is the complementary color of #505A6F?
- The complementary color is #6F6550, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505A6F?
- White text. Black text has a contrast ratio of 3.03:1 and white text 6.92:1. WCAG asks for at least 4.5:1 for normal text.