#212539 color
The hex color #212539 is a very dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 14.5% green and 22.4% blue (33, 37, 57).
Its hue angle is 230°, with 27% saturation and 18% lightness. For print, the CMYK equivalent is 42% cyan, 35% magenta, 0% yellow and 78% black.
The closest named color is Midnight Express (#21263A), a difference of 0.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.13:1).
#212539 color codes
| HEX | #212539 | |
|---|---|---|
| RGB | rgb(33, 37, 57) | |
| RGB percent | rgb(12.9%, 14.5%, 22.4%) | |
| HSL | hsl(230, 27%, 18%) | |
| HSV / HSB | hsv(230, 42%, 22%) | |
| CMYK | cmyk(42%, 35%, 0%, 78%) | |
| CIE LAB | lab(15.18, 4.27, -13.49) | |
| CIE LCH | lch(15.18, 14.14, 287.56) | |
| CIE XYZ | xyz(2.027, 1.942, 4.138) | |
| Decimal | 2172217 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212539, 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 #212539 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.39:1 | Fail | Fail | Fail |
| Sample text | 15.13:1 | Pass | Pass | Pass |
| #212539 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.13:1 | Pass | Pass | Pass |
| Sample text | 1.39: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 #212539 looks to people with the most common types of color vision deficiency.
#1f273aProtanopia
no red cones#1d2539Deuteranopia
no green cones#1a292cTritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #212539; }
.text { color: #212539; }
.border { border: 2px solid #212539; }
.transparent { background-color: rgb(33 37 57 / 50%); }
.gradient { background: linear-gradient(to right, #212539, #292139); }
Similar colors
#21263aMidnight Express#1f2133Eclipse Elixir#222233Black Velvet#161e34Sombre Night#1e2433Moonless Mystery#1c2841Eternal Darkness#2c2e47Midnight Masquerade#151931Dark Knight
Closest common color name: Oxford Blue.
Questions
- What color is #212539?
- #212539 is a very dark, desaturated blue, closest to the named color Midnight Express. It belongs to the blue family of colors.
- What is the RGB value of #212539?
- The RGB value is 33, 37, 57: 33 red, 37 green and 57 blue on a 0 to 255 scale.
- What is the complementary color of #212539?
- The complementary color is #393521, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212539?
- White text. Black text has a contrast ratio of 1.39:1 and white text 15.13:1. WCAG asks for at least 4.5:1 for normal text.