#5158A8 color

#5158A8 rgb(81, 88, 168)
Shades of blue

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
RGBrgb(81, 88, 168)
RGB percentrgb(31.8%, 34.5%, 65.9%)
HSLhsl(235, 35%, 49%)
HSV / HSBhsv(235, 52%, 66%)
CMYKcmyk(52%, 48%, 0%, 34%)
CIE LABlab(40.5, 20.2, -44.05)
CIE LCHlch(40.5, 48.46, 294.63)
CIE XYZxyz(13.949, 11.555, 38.534)
Decimal5331112
Short hexNone (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 #5158A8RatioAAAAAAA large
Sample text3.31:1FailFailPass
Sample text6.34:1PassFailPass
#5158A8 as text onRatioAAAAAAA large
Sample text6.34:1PassFailPass
Sample text3.31: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 #5158A8 looks to people with the most common types of color vision deficiency.

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

Similar colors

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.