#21272F color
The hex color #21272F is a very dark, grayish azure.
In the RGB color model it is made of 12.9% red, 15.3% green and 18.4% blue (33, 39, 47).
Its hue angle is 214°, with 18% saturation and 16% lightness. For print, the CMYK equivalent is 30% cyan, 17% magenta, 0% yellow and 82% black.
The closest named color is Infinity (#222831), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.04:1).
#21272F color codes
| HEX | #21272F | |
|---|---|---|
| RGB | rgb(33, 39, 47) | |
| RGB percent | rgb(12.9%, 15.3%, 18.4%) | |
| HSL | hsl(214, 18%, 16%) | |
| HSV / HSB | hsv(214, 30%, 18%) | |
| CMYK | cmyk(30%, 17%, 0%, 82%) | |
| CIE LAB | lab(15.38, -0.38, -6.12) | |
| CIE LCH | lch(15.38, 6.13, 266.44) | |
| CIE XYZ | xyz(1.866, 1.98, 2.973) | |
| Decimal | 2172719 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #21272F, 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 #21272F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.4:1 | Fail | Fail | Fail |
| Sample text | 15.04:1 | Pass | Pass | Pass |
| #21272F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.04:1 | Pass | Pass | Pass |
| Sample text | 1.4: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 #21272F looks to people with the most common types of color vision deficiency.
#24272fProtanopia
no red cones#23262fDeuteranopia
no green cones#1d292aTritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #21272f; }
.text { color: #21272f; }
.border { border: 2px solid #21272f; }
.transparent { background-color: rgb(33 39 47 / 50%); }
.gradient { background: linear-gradient(to right, #21272f, #22212f); }
Similar colors
#222831Infinity#292b31Night Sky#242a2eCinder#1b2431Dark#1e272cBlack Pearl#28282dAnthracite#29292fJaguar#2b2c30Caviar
Closest common color name: Gunmetal.
Questions
- What color is #21272F?
- #21272F is a very dark, grayish azure, closest to the named color Infinity. It belongs to the black family of colors.
- What is the RGB value of #21272F?
- The RGB value is 33, 39, 47: 33 red, 39 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #21272F?
- The complementary color is #2F2921, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #21272F?
- White text. Black text has a contrast ratio of 1.4:1 and white text 15.04:1. WCAG asks for at least 4.5:1 for normal text.