#212642 color
The hex color #212642 is a very dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 14.9% green and 25.9% blue (33, 38, 66).
Its hue angle is 231°, with 33% saturation and 19% lightness. For print, the CMYK equivalent is 50% cyan, 42% magenta, 0% yellow and 74% black.
The closest named color is Nightwalker (#161D3B), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.78:1).
#212642 color codes
| HEX | #212642 | |
|---|---|---|
| RGB | rgb(33, 38, 66) | |
| RGB percent | rgb(12.9%, 14.9%, 25.9%) | |
| HSL | hsl(231, 33%, 19%) | |
| HSV / HSB | hsv(231, 50%, 26%) | |
| CMYK | cmyk(50%, 42%, 0%, 74%) | |
| CIE LAB | lab(16.02, 6.69, -18.45) | |
| CIE LCH | lch(16.02, 19.62, 289.92) | |
| CIE XYZ | xyz(2.303, 2.103, 5.438) | |
| Decimal | 2172482 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212642, 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 #212642 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.42:1 | Fail | Fail | Fail |
| Sample text | 14.78:1 | Pass | Pass | Pass |
| #212642 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.78:1 | Pass | Pass | Pass |
| Sample text | 1.42: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 #212642 looks to people with the most common types of color vision deficiency.
#1c2943Protanopia
no red cones#192741Deuteranopia
no green cones#162c30Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #212642; }
.text { color: #212642; }
.border { border: 2px solid #212642; }
.transparent { background-color: rgb(33 38 66 / 50%); }
.gradient { background: linear-gradient(to right, #212642, #2c2142); }
Similar colors
#161d3bNightwalker#2c2e47Midnight Masquerade#222244Black Market#1c2841Eternal Darkness#21263aMidnight Express#112244Dark Eclipse#161e34Sombre Night#1d2951Space Cadet
Closest common color name: Oxford Blue.
Questions
- What color is #212642?
- #212642 is a very dark, desaturated blue, closest to the named color Nightwalker. It belongs to the blue family of colors.
- What is the RGB value of #212642?
- The RGB value is 33, 38, 66: 33 red, 38 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #212642?
- The complementary color is #423D21, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212642?
- White text. Black text has a contrast ratio of 1.42:1 and white text 14.78:1. WCAG asks for at least 4.5:1 for normal text.