#504A7A color
The hex color #504A7A is a grayish blue.
In the RGB color model it is made of 31.4% red, 29% green and 47.8% blue (80, 74, 122).
Its hue angle is 248°, with 24% saturation and 38% lightness. For print, the CMYK equivalent is 34% cyan, 39% magenta, 0% yellow and 52% black.
The closest named color is Tangent Periwinkle (#50507F), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.07:1).
#504A7A color codes
| HEX | #504A7A | |
|---|---|---|
| RGB | rgb(80, 74, 122) | |
| RGB percent | rgb(31.4%, 29%, 47.8%) | |
| HSL | hsl(248, 24%, 38%) | |
| HSV / HSB | hsv(248, 39%, 48%) | |
| CMYK | cmyk(34%, 39%, 0%, 52%) | |
| CIE LAB | lab(34, 14.63, -26.46) | |
| CIE LCH | lch(34, 30.24, 298.94) | |
| CIE XYZ | xyz(9.269, 8.008, 19.466) | |
| Decimal | 5261946 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #504A7A, 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 #504A7A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.6:1 | Fail | Fail | Fail |
| Sample text | 8.07:1 | Pass | Pass | Pass |
| #504A7A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.07:1 | Pass | Pass | Pass |
| Sample text | 2.6: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 #504A7A looks to people with the most common types of color vision deficiency.
#3b517cProtanopia
no red cones#3b4f79Deuteranopia
no green cones#46535cTritanopia
no blue cones#505050Achromatopsia
no color vision
CSS examples
.background { background-color: #504a7a; }
.text { color: #504a7a; }
.border { border: 2px solid #504a7a; }
.transparent { background-color: rgb(80 74 122 / 50%); }
.gradient { background: linear-gradient(to right, #504a7a, #684a7a); }
Similar colors
#50507fTangent Periwinkle#5c5083Freshly Purpleized#604c81Sumptuous Purple#4e5481Dusk#4e518bTwilight#5c457bIn the Vines#614a7bRoyal Robe#4a3b6aMeteorite
Closest common color name: Dark Slate Blue.
Questions
- What color is #504A7A?
- #504A7A is a grayish blue, closest to the named color Tangent Periwinkle. It belongs to the blue family of colors.
- What is the RGB value of #504A7A?
- The RGB value is 80, 74, 122: 80 red, 74 green and 122 blue on a 0 to 255 scale.
- What is the complementary color of #504A7A?
- The complementary color is #747A4A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #504A7A?
- White text. Black text has a contrast ratio of 2.6:1 and white text 8.07:1. WCAG asks for at least 4.5:1 for normal text.