#31334D color
The hex color #31334D is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20% green and 30.2% blue (49, 51, 77).
Its hue angle is 236°, with 22% saturation and 25% lightness. For print, the CMYK equivalent is 36% cyan, 34% magenta, 0% yellow and 70% black.
The closest named color is Midnight Masquerade (#2C2E47), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.27:1).
#31334D color codes
| HEX | #31334D | |
|---|---|---|
| RGB | rgb(49, 51, 77) | |
| RGB percent | rgb(19.2%, 20%, 30.2%) | |
| HSL | hsl(236, 22%, 25%) | |
| HSV / HSB | hsv(236, 36%, 30%) | |
| CMYK | cmyk(36%, 34%, 0%, 70%) | |
| CIE LAB | lab(22.15, 6.39, -16.24) | |
| CIE LCH | lch(22.15, 17.45, 291.47) | |
| CIE XYZ | xyz(3.79, 3.556, 7.507) | |
| Decimal | 3224397 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31334D, 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 #31334D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.71:1 | Fail | Fail | Fail |
| Sample text | 12.27:1 | Pass | Pass | Pass |
| #31334D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.27:1 | Pass | Pass | Pass |
| Sample text | 1.71: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 #31334D looks to people with the most common types of color vision deficiency.
#2b364eProtanopia
no red cones#2a344cDeuteranopia
no green cones#2a383cTritanopia
no blue cones#353535Achromatopsia
no color vision
CSS examples
.background { background-color: #31334d; }
.text { color: #31334d; }
.border { border: 2px solid #31334d; }
.transparent { background-color: rgb(49 51 77 / 50%); }
.gradient { background: linear-gradient(to right, #31334d, #3d314d); }
Similar colors
#2c2e47Midnight Masquerade#2e3858Mediaeval Blue#333344Shuriken#2b3458Midnight Escapade#3f354fMaharaja#21263aMidnight Express#3d3d63Storm Is Coming#1c2841Eternal Darkness
Closest common color name: Oxford Blue.
Questions
- What color is #31334D?
- #31334D is a dark, grayish blue, closest to the named color Midnight Masquerade. It belongs to the blue family of colors.
- What is the RGB value of #31334D?
- The RGB value is 49, 51, 77: 49 red, 51 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #31334D?
- The complementary color is #4D4B31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31334D?
- White text. Black text has a contrast ratio of 1.71:1 and white text 12.27:1. WCAG asks for at least 4.5:1 for normal text.