#31333F color
The hex color #31333F is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20% green and 24.7% blue (49, 51, 63).
Its hue angle is 231°, with 13% saturation and 22% lightness. For print, the CMYK equivalent is 22% cyan, 19% magenta, 0% yellow and 75% black.
The closest named color is Total Eclipse (#303543), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.53:1).
#31333F color codes
| HEX | #31333F | |
|---|---|---|
| RGB | rgb(49, 51, 63) | |
| RGB percent | rgb(19.2%, 20%, 24.7%) | |
| HSL | hsl(231, 13%, 22%) | |
| HSV / HSB | hsv(231, 22%, 25%) | |
| CMYK | cmyk(22%, 19%, 0%, 75%) | |
| CIE LAB | lab(21.5, 2.24, -7.8) | |
| CIE LCH | lch(21.5, 8.11, 286.03) | |
| CIE XYZ | xyz(3.347, 3.379, 5.178) | |
| Decimal | 3224383 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31333F, 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 #31333F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.68:1 | Fail | Fail | Fail |
| Sample text | 12.53:1 | Pass | Pass | Pass |
| #31333F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.53:1 | Pass | Pass | Pass |
| Sample text | 1.68: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 #31333F looks to people with the most common types of color vision deficiency.
#303440Protanopia
no red cones#2f333fDeuteranopia
no green cones#2e3537Tritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #31333f; }
.text { color: #31333f; }
.border { border: 2px solid #31333f; }
.transparent { background-color: rgb(49 51 63 / 50%); }
.gradient { background: linear-gradient(to right, #31333f, #36313f); }
Similar colors
#303543Total Eclipse#35343fWitches Cauldron#333344Shuriken#393540Professor Plum#2c2a35Haiti#38393fAfter Midnight#363b43Do Not Disturb#393f4bInkblot
Closest common color name: Jet Black.
Questions
- What color is #31333F?
- #31333F is a dark, grayish blue, closest to the named color Total Eclipse. It belongs to the gray family of colors.
- What is the RGB value of #31333F?
- The RGB value is 49, 51, 63: 49 red, 51 green and 63 blue on a 0 to 255 scale.
- What is the complementary color of #31333F?
- The complementary color is #3F3D31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31333F?
- White text. Black text has a contrast ratio of 1.68:1 and white text 12.53:1. WCAG asks for at least 4.5:1 for normal text.