#31518D color
The hex color #31518D is a dark, desaturated azure.
In the RGB color model it is made of 19.2% red, 31.8% green and 55.3% blue (49, 81, 141).
Its hue angle is 219°, with 48% saturation and 37% lightness. For print, the CMYK equivalent is 65% cyan, 43% magenta, 0% yellow and 45% black.
The closest named color is Nightly Activities (#2E5090), a difference of 0.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.8:1).
#31518D color codes
| HEX | #31518D | |
|---|---|---|
| RGB | rgb(49, 81, 141) | |
| RGB percent | rgb(19.2%, 31.8%, 55.3%) | |
| HSL | hsl(219, 48%, 37%) | |
| HSV / HSB | hsv(219, 65%, 55%) | |
| CMYK | cmyk(65%, 43%, 0%, 45%) | |
| CIE LAB | lab(34.92, 8.53, -36.84) | |
| CIE LCH | lch(34.92, 37.81, 283.03) | |
| CIE XYZ | xyz(9.015, 8.46, 26.352) | |
| Decimal | 3232141 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31518D, 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 #31518D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.69:1 | Fail | Fail | Fail |
| Sample text | 7.8:1 | Pass | Pass | Pass |
| #31518D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.8:1 | Pass | Pass | Pass |
| Sample text | 2.69:1 | Fail | Fail | Fail |
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 #31518D looks to people with the most common types of color vision deficiency.
#36578fProtanopia
no red cones#284e8cDeuteranopia
no green cones#005f68Tritanopia
no blue cones#525252Achromatopsia
no color vision
CSS examples
.background { background-color: #31518d; }
.text { color: #31518d; }
.border { border: 2px solid #31518d; }
.transparent { background-color: rgb(49 81 141 / 50%); }
.gradient { background: linear-gradient(to right, #31518d, #3f318d); }
Similar colors
#2e5090Nightly Activities#2d4f83Assassin#335588Glimpse of Void#244e94Le Grand Bleu#2d5284Galaxy Blue#234e86Night Mode#1c4d8fDancing Sea#1c4c8cOlympian Blue
Closest common color name: Cobalt Blue.
Questions
- What color is #31518D?
- #31518D is a dark, desaturated azure, closest to the named color Nightly Activities. It belongs to the blue family of colors.
- What is the RGB value of #31518D?
- The RGB value is 49, 81, 141: 49 red, 81 green and 141 blue on a 0 to 255 scale.
- What is the complementary color of #31518D?
- The complementary color is #8D6D31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31518D?
- White text. Black text has a contrast ratio of 2.69:1 and white text 7.8:1. WCAG asks for at least 4.5:1 for normal text.