#31333E color
The hex color #31333E is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20% green and 24.3% blue (49, 51, 62).
Its hue angle is 231°, with 12% saturation and 22% lightness. For print, the CMYK equivalent is 21% cyan, 18% magenta, 0% yellow and 76% black.
The closest named color is Witches Cauldron (#35343F), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.55:1).
#31333E color codes
| HEX | #31333E | |
|---|---|---|
| RGB | rgb(49, 51, 62) | |
| RGB percent | rgb(19.2%, 20%, 24.3%) | |
| HSL | hsl(231, 12%, 22%) | |
| HSV / HSB | hsv(231, 21%, 24%) | |
| CMYK | cmyk(21%, 18%, 0%, 76%) | |
| CIE LAB | lab(21.46, 1.96, -7.18) | |
| CIE LCH | lch(21.46, 7.44, 285.29) | |
| CIE XYZ | xyz(3.32, 3.368, 5.032) | |
| Decimal | 3224382 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31333E, 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 #31333E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.67:1 | Fail | Fail | Fail |
| Sample text | 12.55:1 | Pass | Pass | Pass |
| #31333E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.55:1 | Pass | Pass | Pass |
| Sample text | 1.67: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 #31333E looks to people with the most common types of color vision deficiency.
#30343fProtanopia
no red cones#2f333eDeuteranopia
no green cones#2e3537Tritanopia
no blue cones#333333Achromatopsia
no color vision
CSS examples
.background { background-color: #31333e; }
.text { color: #31333e; }
.border { border: 2px solid #31333e; }
.transparent { background-color: rgb(49 51 62 / 50%); }
.gradient { background: linear-gradient(to right, #31333e, #35313e); }
Similar colors
#35343fWitches Cauldron#303543Total Eclipse#38393fAfter Midnight#393540Professor Plum#2c2a35Haiti#333344Shuriken#363b43Do Not Disturb#292b31Night Sky
Closest common color name: Jet Black.
Questions
- What color is #31333E?
- #31333E is a dark, grayish blue, closest to the named color Witches Cauldron. It belongs to the gray family of colors.
- What is the RGB value of #31333E?
- The RGB value is 49, 51, 62: 49 red, 51 green and 62 blue on a 0 to 255 scale.
- What is the complementary color of #31333E?
- The complementary color is #3E3C31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31333E?
- White text. Black text has a contrast ratio of 1.67:1 and white text 12.55:1. WCAG asks for at least 4.5:1 for normal text.