#222222 color
#222222 is a very dark, desaturated grey, closest to the CSS named color midnightblue (#191970).
Color values
| HEX | #222222 |
| RGB | rgb(34, 34, 34) |
| HSL | hsl(0, 0%, 13%) |
| CMYK | cmyk(0%, 0%, 0%, 87%) |
| Decimal | 2236962 |
| CSS | color: #222222; |
| Android | 0xFF222222 |
| Swift | UIColor(red: 0.133, green: 0.133, blue: 0.133, alpha: 1) |
Accessibility and contrast
| White text on #222222 | 15.91:1 — AA pass · AA large pass · AAA pass |
| Black text on #222222 | 1.32:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #222222
Each swatch keeps the hue and saturation of #222222 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #222222
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #222222 in code
/* CSS */
.element { color: #222222; background-color: #222222; }
.element { color: rgb(34 34 34); }
.element { color: hsl(0 0% 13%); }
/* Tailwind arbitrary value */
<div class="bg-[#222222] text-white">
/* SCSS variable */
$brand: #222222;
Frequently asked questions
What color is #222222?
#222222 is a very dark, desaturated grey. Its hue sits at 0° on the color wheel, with 0% saturation and 13% lightness.
What is #222222 in RGB?
#222222 converts to rgb(34, 34, 34) — 34 red, 34 green and 34 blue.
What is #222222 in CMYK?
Approximately cmyk(0%, 0%, 0%, 87%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #222222 be white or black?
White gives the better contrast ratio (15.91:1 versus 1.32:1).
What is the complementary color of #222222?
#212121 — the hue directly opposite #222222 on the color wheel.