#5151DC color

#5151DC rgb(81, 81, 220)
Shades of blue

The hex color #5151DC is a moderate blue.

In the RGB color model it is made of 31.8% red, 31.8% green and 86.3% blue (81, 81, 220).

Its hue angle is 240°, with 67% saturation and 59% lightness. For print, the CMYK equivalent is 63% cyan, 63% magenta, 0% yellow and 14% black.

The closest named color is Warm Blue (#4B57DB), a difference of 2.1 ΔE, a small difference.

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

#5151DC color codes

HEX#5151DC
RGBrgb(81, 81, 220)
RGB percentrgb(31.8%, 31.8%, 86.3%)
HSLhsl(240, 67%, 59%)
HSV / HSBhsv(240, 63%, 86%)
CMYKcmyk(63%, 63%, 0%, 14%)
CIE LABlab(42.46, 41.65, -71.12)
CIE LCHlch(42.46, 82.42, 300.35)
CIE XYZxyz(19.25, 12.8, 69.152)
Decimal5329372
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #5151DC, 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 #5151DCRatioAAAAAAA large
Sample text3.56:1FailFailPass
Sample text5.9:1PassFailPass
#5151DC as text onRatioAAAAAAA large
Sample text5.9:1PassFailPass
Sample text3.56: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 #5151DC looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #5151dc; }
.text { color: #5151dc; }
.border { border: 2px solid #5151dc; }
.transparent { background-color: rgb(81 81 220 / 50%); }
.gradient { background: linear-gradient(to right, #5151dc, #9751dc); }
Background
Text color
Border

Similar colors

Questions

What color is #5151DC?
#5151DC is a moderate blue, closest to the named color Warm Blue. It belongs to the blue family of colors.
What is the RGB value of #5151DC?
The RGB value is 81, 81, 220: 81 red, 81 green and 220 blue on a 0 to 255 scale.
What is the complementary color of #5151DC?
The complementary color is #DCDC51, found by rotating the hue 180° on the color wheel.
Is black or white text better on #5151DC?
White text. Black text has a contrast ratio of 3.56:1 and white text 5.9:1. WCAG asks for at least 4.5:1 for normal text.