#1F222F color
The hex color #1F222F is a very dark, grayish blue.
In the RGB color model it is made of 12.2% red, 13.3% green and 18.4% blue (31, 34, 47).
Its hue angle is 229°, with 21% saturation and 15% lightness. For print, the CMYK equivalent is 34% cyan, 28% magenta, 0% yellow and 82% black.
The closest named color is Moonless Mystery (#1E2433), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.81:1).
#1F222F color codes
| HEX | #1F222F | |
|---|---|---|
| RGB | rgb(31, 34, 47) | |
| RGB percent | rgb(12.2%, 13.3%, 18.4%) | |
| HSL | hsl(229, 21%, 15%) | |
| HSV / HSB | hsv(229, 34%, 18%) | |
| CMYK | cmyk(34%, 28%, 0%, 82%) | |
| CIE LAB | lab(13.48, 2.42, -9.04) | |
| CIE LCH | lch(13.48, 9.35, 284.99) | |
| CIE XYZ | xyz(1.65, 1.641, 2.918) | |
| Decimal | 2040367 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F222F, 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 #1F222F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.33:1 | Fail | Fail | Fail |
| Sample text | 15.81:1 | Pass | Pass | Pass |
| #1F222F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.81:1 | Pass | Pass | Pass |
| Sample text | 1.33: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 #1F222F looks to people with the most common types of color vision deficiency.
#1e2330Protanopia
no red cones#1d222fDeuteranopia
no green cones#1b2426Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #1f222f; }
.text { color: #1f222f; }
.border { border: 2px solid #1f222f; }
.transparent { background-color: rgb(31 34 47 / 50%); }
.gradient { background: linear-gradient(to right, #1f222f, #241f2f); }
Similar colors
#1e2433Moonless Mystery#1f2133Eclipse Elixir#222233Black Velvet#1b2431Dark#21263aMidnight Express#2c2a35Haiti#222831Infinity#161e34Sombre Night
Closest common color name: Midnight Black.
Questions
- What color is #1F222F?
- #1F222F is a very dark, grayish blue, closest to the named color Moonless Mystery. It belongs to the black family of colors.
- What is the RGB value of #1F222F?
- The RGB value is 31, 34, 47: 31 red, 34 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #1F222F?
- The complementary color is #2F2C1F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F222F?
- White text. Black text has a contrast ratio of 1.33:1 and white text 15.81:1. WCAG asks for at least 4.5:1 for normal text.