#5271AF color
The hex color #5271AF is a desaturated blue.
In the RGB color model it is made of 32.2% red, 44.3% green and 68.6% blue (82, 113, 175).
Its hue angle is 220°, with 37% saturation and 50% lightness. For print, the CMYK equivalent is 53% cyan, 35% magenta, 0% yellow and 31% black.
The closest named color is Song of the Sea (#4A73A8), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 4.84:1).
#5271AF color codes
| HEX | #5271AF | |
|---|---|---|
| RGB | rgb(82, 113, 175) | |
| RGB percent | rgb(32.2%, 44.3%, 68.6%) | |
| HSL | hsl(220, 37%, 50%) | |
| HSV / HSB | hsv(220, 53%, 69%) | |
| CMYK | cmyk(53%, 35%, 0%, 31%) | |
| CIE LAB | lab(47.88, 7.04, -36.45) | |
| CIE LCH | lch(47.88, 37.13, 280.93) | |
| CIE XYZ | xyz(17.12, 16.698, 42.87) | |
| Decimal | 5403055 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5271AF, 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 #5271AF | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.34:1 | Fail | Fail | Pass |
| Sample text | 4.84:1 | Pass | Fail | Pass |
| #5271AF as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.84:1 | Pass | Fail | Pass |
| Sample text | 4.34: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 #5271AF looks to people with the most common types of color vision deficiency.
#5976b2Protanopia
no red cones#4e6eaeDeuteranopia
no green cones#237e88Tritanopia
no blue cones#727272Achromatopsia
no color vision
CSS examples
.background { background-color: #5271af; }
.text { color: #5271af; }
.border { border: 2px solid #5271af; }
.transparent { background-color: rgb(82 113 175 / 50%); }
.gradient { background: linear-gradient(to right, #5271af, #6252af); }
Similar colors
#4a73a8Song of the Sea#567aadEndless River#4575adSail On#5879a2Montreux Blue#5f6db0Loch Ness#4376abBlue Triumph#6677bbFlood#4664a5Starstruck
Closest common color name: Royal Blue.
Questions
- What color is #5271AF?
- #5271AF is a desaturated blue, closest to the named color Song of the Sea. It belongs to the blue family of colors.
- What is the RGB value of #5271AF?
- The RGB value is 82, 113, 175: 82 red, 113 green and 175 blue on a 0 to 255 scale.
- What is the complementary color of #5271AF?
- The complementary color is #AF9052, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5271AF?
- White text. Black text has a contrast ratio of 4.34:1 and white text 4.84:1. WCAG asks for at least 4.5:1 for normal text.