#5731D8 color

#5731D8 rgb(87, 49, 216)
Shades of blue

The hex color #5731D8 is a moderate violet.

In the RGB color model it is made of 34.1% red, 19.2% green and 84.7% blue (87, 49, 216).

Its hue angle is 254°, with 68% saturation and 52% lightness. For print, the CMYK equivalent is 60% cyan, 77% magenta, 0% yellow and 15% black.

The closest named color is Blurple (#5539CC), a difference of 2 ΔE, a small difference.

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

#5731D8 color codes

HEX#5731D8
RGBrgb(87, 49, 216)
RGB percentrgb(34.1%, 19.2%, 84.7%)
HSLhsl(254, 68%, 52%)
HSV / HSBhsv(254, 77%, 85%)
CMYKcmyk(60%, 77%, 0%, 15%)
CIE LABlab(36.33, 58.46, -78.88)
CIE LCHlch(36.33, 98.18, 306.55)
CIE XYZxyz(17.42, 9.18, 65.806)
Decimal5714392
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5731D8, 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 #5731D8RatioAAAAAAA large
Sample text2.84:1FailFailFail
Sample text7.4:1PassPassPass
#5731D8 as text onRatioAAAAAAA large
Sample text7.4:1PassPassPass
Sample text2.84: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 #5731D8 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5731d8; }
.text { color: #5731d8; }
.border { border: 2px solid #5731d8; }
.transparent { background-color: rgb(87 49 216 / 50%); }
.gradient { background: linear-gradient(to right, #5731d8, #ab31d8); }
Background
Text color
Border

Similar colors

Closest common color name: Blue.

Questions

What color is #5731D8?
#5731D8 is a moderate violet, closest to the named color Blurple. It belongs to the blue family of colors.
What is the RGB value of #5731D8?
The RGB value is 87, 49, 216: 87 red, 49 green and 216 blue on a 0 to 255 scale.
What is the complementary color of #5731D8?
The complementary color is #B2D831, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5731D8?
White text. Black text has a contrast ratio of 2.84:1 and white text 7.4:1. WCAG asks for at least 4.5:1 for normal text.