#1F2236 color
The hex color #1F2236 is a very dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 13.3% green and 21.2% blue (31, 34, 54).
Its hue angle is 232°, with 27% saturation and 17% lightness. For print, the CMYK equivalent is 43% cyan, 37% magenta, 0% yellow and 79% black.
The closest named color is Eclipse Elixir (#1F2133), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.67:1).
#1F2236 color codes
| HEX | #1F2236 | |
|---|---|---|
| RGB | rgb(31, 34, 54) | |
| RGB percent | rgb(12.2%, 13.3%, 21.2%) | |
| HSL | hsl(232, 27%, 17%) | |
| HSV / HSB | hsv(232, 43%, 21%) | |
| CMYK | cmyk(43%, 37%, 0%, 79%) | |
| CIE LAB | lab(13.84, 4.74, -13.47) | |
| CIE LCH | lch(13.84, 14.28, 289.38) | |
| CIE XYZ | xyz(1.803, 1.702, 3.723) | |
| Decimal | 2040374 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F2236, 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 #1F2236 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.34:1 | Fail | Fail | Fail |
| Sample text | 15.67:1 | Pass | Pass | Pass |
| #1F2236 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.67:1 | Pass | Pass | Pass |
| Sample text | 1.34: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 #1F2236 looks to people with the most common types of color vision deficiency.
#1c2437Protanopia
no red cones#1a2236Deuteranopia
no green cones#182629Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #1f2236; }
.text { color: #1f2236; }
.border { border: 2px solid #1f2236; }
.transparent { background-color: rgb(31 34 54 / 50%); }
.gradient { background: linear-gradient(to right, #1f2236, #271f36); }
Similar colors
#1f2133Eclipse Elixir#21263aMidnight Express#222233Black Velvet#161e34Sombre Night#151931Dark Knight#1e2433Moonless Mystery#1c2841Eternal Darkness#2c2e47Midnight Masquerade
Closest common color name: Oxford Blue.
Questions
- What color is #1F2236?
- #1F2236 is a very dark, desaturated blue, closest to the named color Eclipse Elixir. It belongs to the blue family of colors.
- What is the RGB value of #1F2236?
- The RGB value is 31, 34, 54: 31 red, 34 green and 54 blue on a 0 to 255 scale.
- What is the complementary color of #1F2236?
- The complementary color is #36331F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F2236?
- White text. Black text has a contrast ratio of 1.34:1 and white text 15.67:1. WCAG asks for at least 4.5:1 for normal text.