#5151A8 color

#5151A8 rgb(81, 81, 168)
Shades of blue

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
RGBrgb(81, 81, 168)
RGB percentrgb(31.8%, 31.8%, 65.9%)
HSLhsl(240, 35%, 49%)
HSV / HSBhsv(240, 52%, 66%)
CMYKcmyk(52%, 52%, 0%, 34%)
CIE LABlab(38.66, 24.65, -47.01)
CIE LCHlch(38.66, 53.08, 297.67)
CIE XYZxyz(13.401, 10.461, 38.351)
Decimal5329320
Short hexNone (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 #5151A8RatioAAAAAAA large
Sample text3.09:1FailFailPass
Sample text6.79:1PassFailPass
#5151A8 as text onRatioAAAAAAA large
Sample text6.79:1PassFailPass
Sample text3.09:1FailFailPass

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.

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); }
Background
Text color
Border

Similar colors

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.