#222222 color

#222222 is rgb(34, 34, 34) in RGB and hsl(0, 0%, 13%) in HSL. The closest CSS named color is black (#000000, ΔE 8). Use white text on it (contrast 15.91:1).

#222222red
HEX#222222
Short HEX#222
RGBrgb(34, 34, 34)
RGB percentrgb(13.3%, 13.3%, 13.3%)
HSLhsl(0, 0%, 13%)
HSV / HSBhsv(0, 0%, 13%)
CMYKcmyk(0%, 0%, 0%, 87%)

Edit in the color converter → · Check contrast → · Shades →

About #222222

#222222 is a dark, neutral gray. It belongs to the gray family and reads as a neutral color. All three channels are equal (34), so it is a pure gray at 13.3% brightness with no hue at all. Colors like this are typically used for dark backgrounds, text, footers and dark-mode surfaces.

Color conversions

HEX#222222
Short HEX#222
RGBrgb(34, 34, 34)
RGB percentrgb(13.3%, 13.3%, 13.3%)
HSLhsl(0, 0%, 13%)
HSV / HSBhsv(0, 0%, 13%)
CMYKcmyk(0%, 0%, 0%, 87%)
CIELAB (D65)lab(13.2 0 0)
Decimal2236962
Binary00100010 00100010 00100010

HEX 22 22 22 → 34, 34, 34 (each pair is a base-16 number: 2×16 + 2 = 34)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #222222

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #222222RatioAA normalAA largeAAA normalAAA large
White text15.91:1PassPassPassPass
Black text1.32:1FailFailFailFail
White text on #222222
Black text on #222222
#222222 text on white
#222222 text on black

Relative luminance is 0.0160 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#222222

Deuteranopia
#222222

Tritanopia
#222222

Achromatopsia
#222222

People with red–green color blindness see this color almost unchanged (ΔE 0 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
black#0000008
darkslategray#2f4f4f18.1
dimgray#69696923.8
midnightblue#19197025.6

Nearby colors

CSS

.element {
  color: #222222;
  background-color: rgb(34, 34, 34);
  border: 1px solid hsl(0, 0%, 13%);
  box-shadow: 0 2px 8px rgb(34 34 34 / 50%);
}
:root { --brand: #222222; }

Frequently asked questions

What color is #222222?
A dark neutral gray in the gray family. Closest CSS name: black.
What is #222222 in RGB?
rgb(34, 34, 34): red 34, green 34, blue 34.
What is the complementary color of #222222?
#222222, found by rotating the hue 180°.