#222222
Gray 3
#222222 is the CSS named color "black", an exact match. In RGB it breaks down to red 34, green 34, and blue 34 out of 255 each. In HSL terms that's a hue of 0°, 0% saturation, and 13% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.
Every format
| HEX | #222222 |
| RGB | rgb(34, 34, 34) |
| HSL | hsl(0° 0% 13%) |
| HSB | hsb(0° 0% 13%) |
| OKLCH | oklch(25% 0.000 0°) |
| OKLAB | oklab(25% 0.000 0.000) |
| LCH | lch(13% 0.0 0°) |
| CMYK | cmyk(0% 0% 0% 87%) |
Shades (darker)
#222222 · #1d1d1d · #191919 · #141414 · #101010
Tints (lighter)
#222222 · #343434 · #484848 · #5c5c5c · #727272
Shades mix #222222 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 15.91:1 — AAA
On black: 1.32:1 — fails
Frequently asked
- What is #222222 in RGB?
- #222222 is rgb(34, 34, 34) — red 34, green 34, blue 34 out of 255 each.
- Does #222222 pass WCAG contrast on a white background?
- It has a contrast ratio of 15.91:1 against white, which passes WCAG AAA for normal text.
- What's a good background color to pair with #222222?
- White text or a white background gives better contrast (15.91:1) than black (1.32:1).