#5158A8 color
The hex color #5158A8 is a desaturated blue.
In the RGB color model it is made of 31.8% red, 34.5% green and 65.9% blue (81, 88, 168).
Its hue angle is 235°, with 35% saturation and 49% lightness. For print, the CMYK equivalent is 52% cyan, 48% magenta, 0% yellow and 34% black.
The closest named color is Bellflower (#5D66AA), a difference of 4.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.34:1).
#5158A8 color codes
| HEX | #5158A8 | |
|---|---|---|
| RGB | rgb(81, 88, 168) | |
| RGB percent | rgb(31.8%, 34.5%, 65.9%) | |
| HSL | hsl(235, 35%, 49%) | |
| HSV / HSB | hsv(235, 52%, 66%) | |
| CMYK | cmyk(52%, 48%, 0%, 34%) | |
| CIE LAB | lab(40.5, 20.2, -44.05) | |
| CIE LCH | lch(40.5, 48.46, 294.63) | |
| CIE XYZ | xyz(13.949, 11.555, 38.534) | |
| Decimal | 5331112 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5158A8, 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 #5158A8 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.31:1 | Fail | Fail | Pass |
| Sample text | 6.34:1 | Pass | Fail | Pass |
| #5158A8 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.34:1 | Pass | Fail | Pass |
| Sample text | 3.31: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 #5158A8 looks to people with the most common types of color vision deficiency.
#3563abProtanopia
no red cones#2c5ca6Deuteranopia
no green cones#2d6978Tritanopia
no blue cones#5f5f5fAchromatopsia
no color vision
CSS examples
.background { background-color: #5158a8; }
.text { color: #5158a8; }
.border { border: 2px solid #5158a8; }
.transparent { background-color: rgb(81 88 168 / 50%); }
.gradient { background: linear-gradient(to right, #5158a8, #7651a8); }
Similar colors
#51588ePiccadilly Purple#5d66aaBellflower#5d6098Wizard’s Potion#3356aaBlasphemous Blue#4e518bTwilight#4664a5Starstruck#654ea3Ultrapurple Merge#444499Galaxy Express
Closest common color name: Slate Blue.
Questions
- What color is #5158A8?
- #5158A8 is a desaturated blue, closest to the named color Bellflower. It belongs to the blue family of colors.
- What is the RGB value of #5158A8?
- The RGB value is 81, 88, 168: 81 red, 88 green and 168 blue on a 0 to 255 scale.
- What is the complementary color of #5158A8?
- The complementary color is #A8A151, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5158A8?
- White text. Black text has a contrast ratio of 3.31:1 and white text 6.34:1. WCAG asks for at least 4.5:1 for normal text.