#212D45 color
The hex color #212D45 is a dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 17.6% green and 27.1% blue (33, 45, 69).
Its hue angle is 220°, with 35% saturation and 20% lightness. For print, the CMYK equivalent is 52% cyan, 35% magenta, 0% yellow and 73% black.
The closest named color is Eternal Darkness (#1C2841), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.76:1).
#212D45 color codes
| HEX | #212D45 | |
|---|---|---|
| RGB | rgb(33, 45, 69) | |
| RGB percent | rgb(12.9%, 17.6%, 27.1%) | |
| HSL | hsl(220, 35%, 20%) | |
| HSV / HSB | hsv(220, 52%, 27%) | |
| CMYK | cmyk(52%, 35%, 0%, 73%) | |
| CIE LAB | lab(18.49, 2.73, -16.62) | |
| CIE LCH | lch(18.49, 16.85, 279.32) | |
| CIE XYZ | xyz(2.639, 2.63, 5.998) | |
| Decimal | 2174277 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212D45, 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 #212D45 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.53:1 | Fail | Fail | Fail |
| Sample text | 13.76:1 | Pass | Pass | Pass |
| #212D45 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.76:1 | Pass | Pass | Pass |
| Sample text | 1.53: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 #212D45 looks to people with the most common types of color vision deficiency.
#242f46Protanopia
no red cones#202c44Deuteranopia
no green cones#133236Tritanopia
no blue cones#2d2d2dAchromatopsia
no color vision
CSS examples
.background { background-color: #212d45; }
.text { color: #212d45; }
.border { border: 2px solid #212d45; }
.transparent { background-color: rgb(33 45 69 / 50%); }
.gradient { background: linear-gradient(to right, #212d45, #272145); }
Similar colors
#1c2841Eternal Darkness#21263aMidnight Express#0f2d4dMidnight Ocean#2c2e47Midnight Masquerade#1e2433Moonless Mystery#2e3858Mediaeval Blue#161e34Sombre Night#112244Dark Eclipse
Closest common color name: Oxford Blue.
Questions
- What color is #212D45?
- #212D45 is a dark, desaturated blue, closest to the named color Eternal Darkness. It belongs to the blue family of colors.
- What is the RGB value of #212D45?
- The RGB value is 33, 45, 69: 33 red, 45 green and 69 blue on a 0 to 255 scale.
- What is the complementary color of #212D45?
- The complementary color is #453921, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212D45?
- White text. Black text has a contrast ratio of 1.53:1 and white text 13.76:1. WCAG asks for at least 4.5:1 for normal text.