#5151A8 color
The hex color #5151A8 is a desaturated blue.
In the RGB color model it is made of 31.8% red, 31.8% green and 65.9% blue (81, 81, 168).
Its hue angle is 240°, with 35% saturation and 49% lightness. For print, the CMYK equivalent is 52% cyan, 52% magenta, 0% yellow and 34% black.
The closest named color is Galaxy Express (#444499), a difference of 4.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.79:1).
#5151A8 color codes
| HEX | #5151A8 | |
|---|---|---|
| RGB | rgb(81, 81, 168) | |
| RGB percent | rgb(31.8%, 31.8%, 65.9%) | |
| HSL | hsl(240, 35%, 49%) | |
| HSV / HSB | hsv(240, 52%, 66%) | |
| CMYK | cmyk(52%, 52%, 0%, 34%) | |
| CIE LAB | lab(38.66, 24.65, -47.01) | |
| CIE LCH | lch(38.66, 53.08, 297.67) | |
| CIE XYZ | xyz(13.401, 10.461, 38.351) | |
| Decimal | 5329320 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5151A8, 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 #5151A8 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.09:1 | Fail | Fail | Pass |
| Sample text | 6.79:1 | Pass | Fail | Pass |
| #5151A8 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.79:1 | Pass | Fail | Pass |
| Sample text | 3.09: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 #5151A8 looks to people with the most common types of color vision deficiency.
#255eabProtanopia
no red cones#1c58a6Deuteranopia
no green cones#2e6475Tritanopia
no blue cones#5b5b5bAchromatopsia
no color vision
CSS examples
.background { background-color: #5151a8; }
.text { color: #5151a8; }
.border { border: 2px solid #5151a8; }
.transparent { background-color: rgb(81 81 168 / 50%); }
.gradient { background: linear-gradient(to right, #5151a8, #7d51a8); }
Similar colors
#444499Galaxy Express#654ea3Ultrapurple Merge#4e518bTwilight#464196Blueberry#3356aaBlasphemous Blue#6f58a6Prophet Violet#3d4585Queen of the Night Shift#715bb1Simply Purple
Closest common color name: Dark Slate Blue.
Questions
- What color is #5151A8?
- #5151A8 is a desaturated blue, closest to the named color Galaxy Express. It belongs to the blue family of colors.
- What is the RGB value of #5151A8?
- The RGB value is 81, 81, 168: 81 red, 81 green and 168 blue on a 0 to 255 scale.
- What is the complementary color of #5151A8?
- The complementary color is #A8A851, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5151A8?
- White text. Black text has a contrast ratio of 3.09:1 and white text 6.79:1. WCAG asks for at least 4.5:1 for normal text.