#31394F color
The hex color #31394F is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 22.4% green and 31% blue (49, 57, 79).
Its hue angle is 224°, with 23% saturation and 25% lightness. For print, the CMYK equivalent is 38% cyan, 28% magenta, 0% yellow and 69% black.
The closest named color is Dark & Stormy (#353F51), a difference of 3.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.48:1).
#31394F color codes
| HEX | #31394F | |
|---|---|---|
| RGB | rgb(49, 57, 79) | |
| RGB percent | rgb(19.2%, 22.4%, 31%) | |
| HSL | hsl(224, 23%, 25%) | |
| HSV / HSB | hsv(224, 38%, 31%) | |
| CMYK | cmyk(38%, 28%, 0%, 69%) | |
| CIE LAB | lab(24.14, 2.91, -14.48) | |
| CIE LCH | lch(24.14, 14.77, 281.37) | |
| CIE XYZ | xyz(4.141, 4.144, 7.977) | |
| Decimal | 3225935 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31394F, 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 #31394F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.83:1 | Fail | Fail | Fail |
| Sample text | 11.48:1 | Pass | Pass | Pass |
| #31394F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.48:1 | Pass | Pass | Pass |
| Sample text | 1.83: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 #31394F looks to people with the most common types of color vision deficiency.
#323b50Protanopia
no red cones#2f384eDeuteranopia
no green cones#283d41Tritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #31394f; }
.text { color: #31394f; }
.border { border: 2px solid #31394f; }
.transparent { background-color: rgb(49 57 79 / 50%); }
.gradient { background: linear-gradient(to right, #31394f, #38314f); }
Similar colors
#353f51Dark & Stormy#2e3858Mediaeval Blue#303543Total Eclipse#3c4151Lava Stone#314159Pi#333344Shuriken#273c5aNautilus#2c2e47Midnight Masquerade
Closest common color name: Prussian Blue.
Questions
- What color is #31394F?
- #31394F is a dark, grayish blue, closest to the named color Dark & Stormy. It belongs to the blue family of colors.
- What is the RGB value of #31394F?
- The RGB value is 49, 57, 79: 49 red, 57 green and 79 blue on a 0 to 255 scale.
- What is the complementary color of #31394F?
- The complementary color is #4F4731, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31394F?
- White text. Black text has a contrast ratio of 1.83:1 and white text 11.48:1. WCAG asks for at least 4.5:1 for normal text.