#212342 color
The hex color #212342 is a very dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 13.7% green and 25.9% blue (33, 35, 66).
Its hue angle is 236°, with 33% saturation and 19% lightness. For print, the CMYK equivalent is 50% cyan, 47% magenta, 0% yellow and 74% black.
The closest named color is Black Market (#222244), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.18:1).
#212342 color codes
| HEX | #212342 | |
|---|---|---|
| RGB | rgb(33, 35, 66) | |
| RGB percent | rgb(12.9%, 13.7%, 25.9%) | |
| HSL | hsl(236, 33%, 19%) | |
| HSV / HSB | hsv(236, 50%, 26%) | |
| CMYK | cmyk(50%, 47%, 0%, 74%) | |
| CIE LAB | lab(15.05, 8.88, -19.97) | |
| CIE LCH | lch(15.05, 21.86, 293.98) | |
| CIE XYZ | xyz(2.211, 1.919, 5.407) | |
| Decimal | 2171714 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212342, 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 #212342 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.38:1 | Fail | Fail | Fail |
| Sample text | 15.18:1 | Pass | Pass | Pass |
| #212342 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.18:1 | Pass | Pass | Pass |
| Sample text | 1.38: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 #212342 looks to people with the most common types of color vision deficiency.
#172743Protanopia
no red cones#152541Deuteranopia
no green cones#16292fTritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #212342; }
.text { color: #212342; }
.border { border: 2px solid #212342; }
.transparent { background-color: rgb(33 35 66 / 50%); }
.gradient { background: linear-gradient(to right, #212342, #302142); }
Similar colors
#222244Black Market#161d3bNightwalker#2a2243Midnight Velvet#2c2e47Midnight Masquerade#151931Dark Knight#1d2951Space Cadet#112244Dark Eclipse#2a2551Pāua
Closest common color name: Oxford Blue.
Questions
- What color is #212342?
- #212342 is a very dark, desaturated blue, closest to the named color Black Market. It belongs to the blue family of colors.
- What is the RGB value of #212342?
- The RGB value is 33, 35, 66: 33 red, 35 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #212342?
- The complementary color is #424021, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212342?
- White text. Black text has a contrast ratio of 1.38:1 and white text 15.18:1. WCAG asks for at least 4.5:1 for normal text.