#5151DC color
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 | |
|---|---|---|
| RGB | rgb(81, 81, 220) | |
| RGB percent | rgb(31.8%, 31.8%, 86.3%) | |
| HSL | hsl(240, 67%, 59%) | |
| HSV / HSB | hsv(240, 63%, 86%) | |
| CMYK | cmyk(63%, 63%, 0%, 14%) | |
| CIE LAB | lab(42.46, 41.65, -71.12) | |
| CIE LCH | lch(42.46, 82.42, 300.35) | |
| CIE XYZ | xyz(19.25, 12.8, 69.152) | |
| Decimal | 5329372 | |
| Short hex | None (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 #5151DC | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.56:1 | Fail | Fail | Pass |
| Sample text | 5.9:1 | Pass | Fail | Pass |
| #5151DC as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.9:1 | Pass | Fail | Pass |
| Sample text | 3.56:1 | Fail | Fail | Pass |
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.
#006ae0Protanopia
no red cones#005ed9Deuteranopia
no green cones#00748fTritanopia
no blue cones#646464Achromatopsia
no color vision
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); }
Similar colors
#4b57dbWarm Blue#5260e1Arcane Brew#1f51ffNeon Blue#6a5acdSlate Blue#0055eeOpulent Blue#4b61d1Savoy Blue#0055ddFrosted Blueberries#7755eeCandy Grape Fizz
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.