#212138 color
The hex color #212138 is a very dark, desaturated blue.
In the RGB color model it is made of 12.9% red, 12.9% green and 22% blue (33, 33, 56).
Its hue angle is 240°, with 26% saturation and 17% lightness. For print, the CMYK equivalent is 41% cyan, 41% magenta, 0% yellow and 78% black.
The closest named color is Eclipse Elixir (#1F2133), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.68:1).
#212138 color codes
| HEX | #212138 | |
|---|---|---|
| RGB | rgb(33, 33, 56) | |
| RGB percent | rgb(12.9%, 12.9%, 22%) | |
| HSL | hsl(240, 26%, 17%) | |
| HSV / HSB | hsv(240, 41%, 22%) | |
| CMYK | cmyk(41%, 41%, 0%, 78%) | |
| CIE LAB | lab(13.81, 6.86, -14.92) | |
| CIE LCH | lch(13.81, 16.42, 294.68) | |
| CIE XYZ | xyz(1.885, 1.697, 3.969) | |
| Decimal | 2171192 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #212138, 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 #212138 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.34:1 | Fail | Fail | Fail |
| Sample text | 15.68:1 | Pass | Pass | Pass |
| #212138 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.68:1 | Pass | Pass | Pass |
| Sample text | 1.34: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 #212138 looks to people with the most common types of color vision deficiency.
#1a2439Protanopia
no red cones#192237Deuteranopia
no green cones#1b2529Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #212138; }
.text { color: #212138; }
.border { border: 2px solid #212138; }
.transparent { background-color: rgb(33 33 56 / 50%); }
.gradient { background: linear-gradient(to right, #212138, #2d2138); }
Similar colors
#1f2133Eclipse Elixir#222233Black Velvet#151931Dark Knight#21263aMidnight Express#161d3bNightwalker#161e34Sombre Night#222244Black Market#2c2e47Midnight Masquerade
Closest common color name: Oxford Blue.
Questions
- What color is #212138?
- #212138 is a very dark, desaturated blue, closest to the named color Eclipse Elixir. It belongs to the blue family of colors.
- What is the RGB value of #212138?
- The RGB value is 33, 33, 56: 33 red, 33 green and 56 blue on a 0 to 255 scale.
- What is the complementary color of #212138?
- The complementary color is #383821, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #212138?
- White text. Black text has a contrast ratio of 1.34:1 and white text 15.68:1. WCAG asks for at least 4.5:1 for normal text.