#31405E color
The hex color #31405E is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 25.1% green and 36.9% blue (49, 64, 94).
Its hue angle is 220°, with 31% saturation and 28% lightness. For print, the CMYK equivalent is 48% cyan, 32% magenta, 0% yellow and 63% black.
The closest named color is Nautilus (#273C5A), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.37:1).
#31405E color codes
| HEX | #31405E | |
|---|---|---|
| RGB | rgb(49, 64, 94) | |
| RGB percent | rgb(19.2%, 25.1%, 36.9%) | |
| HSL | hsl(220, 31%, 28%) | |
| HSV / HSB | hsv(220, 48%, 37%) | |
| CMYK | cmyk(48%, 32%, 0%, 63%) | |
| CIE LAB | lab(27.1, 3.08, -19.71) | |
| CIE LCH | lch(27.1, 19.94, 278.87) | |
| CIE XYZ | xyz(5.12, 5.128, 11.307) | |
| Decimal | 3227742 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31405E, 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 #31405E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.03:1 | Fail | Fail | Fail |
| Sample text | 10.37:1 | Pass | Pass | Pass |
| #31405E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.37:1 | Pass | Pass | Pass |
| Sample text | 2.03: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 #31405E looks to people with the most common types of color vision deficiency.
#35425fProtanopia
no red cones#303e5dDeuteranopia
no green cones#20464bTritanopia
no blue cones#404040Achromatopsia
no color vision
CSS examples
.background { background-color: #31405e; }
.text { color: #31405e; }
.border { border: 2px solid #31405e; }
.transparent { background-color: rgb(49 64 94 / 50%); }
.gradient { background: linear-gradient(to right, #31405e, #39315e); }
Similar colors
#273c5aNautilus#2c4364Black Turmeric#314159Pi#3a4866Bonne Nuit#34466cForlorn Cruise#314662Stay the Night#2e3858Mediaeval Blue#3b476bStarlit Night
Closest common color name: Prussian Blue.
Questions
- What color is #31405E?
- #31405E is a dark, desaturated blue, closest to the named color Nautilus. It belongs to the blue family of colors.
- What is the RGB value of #31405E?
- The RGB value is 49, 64, 94: 49 red, 64 green and 94 blue on a 0 to 255 scale.
- What is the complementary color of #31405E?
- The complementary color is #5E4F31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31405E?
- White text. Black text has a contrast ratio of 2.03:1 and white text 10.37:1. WCAG asks for at least 4.5:1 for normal text.