#505172 color

#505172 rgb(80, 81, 114)
Shades of blue

The hex color #505172 is a grayish blue.

In the RGB color model it is made of 31.4% red, 31.8% green and 44.7% blue (80, 81, 114).

Its hue angle is 238°, with 18% saturation and 38% lightness. For print, the CMYK equivalent is 30% cyan, 29% magenta, 0% yellow and 55% black.

The closest named color is Majestic Magic (#555570), a difference of 2.5 ΔE, a small difference.

White text is the more readable choice on this background (contrast 7.61:1).

#505172 color codes

HEX#505172
RGBrgb(80, 81, 114)
RGB percentrgb(31.4%, 31.8%, 44.7%)
HSLhsl(238, 18%, 38%)
HSV / HSBhsv(238, 30%, 45%)
CMYKcmyk(30%, 29%, 0%, 55%)
CIE LABlab(35.61, 7.85, -18.98)
CIE LCHlch(35.61, 20.55, 292.48)
CIE XYZxyz(9.287, 8.805, 17.127)
Decimal5263730
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #505172, 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 #505172RatioAAAAAAA large
Sample text2.76:1FailFailFail
Sample text7.61:1PassPassPass
#505172 as text onRatioAAAAAAA large
Sample text7.61:1PassPassPass
Sample text2.76:1FailFailFail

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 #505172 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #505172; }
.text { color: #505172; }
.border { border: 2px solid #505172; }
.transparent { background-color: rgb(80 81 114 / 50%); }
.gradient { background: linear-gradient(to right, #505172, #605072); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Slate Blue.

Questions

What color is #505172?
#505172 is a grayish blue, closest to the named color Majestic Magic. It belongs to the blue family of colors.
What is the RGB value of #505172?
The RGB value is 80, 81, 114: 80 red, 81 green and 114 blue on a 0 to 255 scale.
What is the complementary color of #505172?
The complementary color is #727150, found by rotating the hue 180° on the color wheel.
Is black or white text better on #505172?
White text. Black text has a contrast ratio of 2.76:1 and white text 7.61:1. WCAG asks for at least 4.5:1 for normal text.