#212147 color
The hex color #212147 is a dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 12.9% green and 27.8% blue (33, 33, 71).
Its hue angle is 240°, with 37% saturation and 20% lightness. For print, the CMYK equivalent is 54% cyan, 54% magenta, 0% yellow and 72% 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.29:1).
#212147 color codes
| HEX | #212147 | |
|---|---|---|
| RGB | rgb(33, 33, 71) | |
| RGB percent | rgb(12.9%, 12.9%, 27.8%) | |
| HSL | hsl(240, 37%, 20%) | |
| HSV / HSB | hsv(240, 54%, 28%) | |
| CMYK | cmyk(54%, 54%, 0%, 72%) | |
| CIE LAB | lab(14.77, 12.17, -23.89) | |
| CIE LCH | lch(14.77, 26.81, 297) | |
| CIE XYZ | xyz(2.308, 1.866, 6.199) | |
| Decimal | 2171207 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212147, 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 #212147 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.37:1 | Fail | Fail | Fail |
| Sample text | 15.29:1 | Pass | Pass | Pass |
| #212147 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.29:1 | Pass | Pass | Pass |
| Sample text | 1.37: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 #212147 looks to people with the most common types of color vision deficiency.
#112748Protanopia
no red cones#0e2446Deuteranopia
no green cones#132930Tritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #212147; }
.text { color: #212147; }
.border { border: 2px solid #212147; }
.transparent { background-color: rgb(33 33 71 / 50%); }
.gradient { background: linear-gradient(to right, #212147, #342147); }
Similar colors
#222244Black Market#211d49Azulado#2a2551Pāua#1c1e4dFly-by-Night#2a2243Midnight Velvet#231c4dSilent Orbit#222255Spacescape#161d3bNightwalker
Closest common color name: Oxford Blue.
Questions
- What color is #212147?
- #212147 is a dark, desaturated blue, closest to the named color Black Market. It belongs to the blue family of colors.
- What is the RGB value of #212147?
- The RGB value is 33, 33, 71: 33 red, 33 green and 71 blue on a 0 to 255 scale.
- What is the complementary color of #212147?
- The complementary color is #474721, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212147?
- White text. Black text has a contrast ratio of 1.37:1 and white text 15.29:1. WCAG asks for at least 4.5:1 for normal text.