#212121

#212121 — Color Codes & Palette

#212121  ·  rgb(33, 33, 33)  ·  hsl(0, 0%, 13%)

Color Codes

Format Value
HEX #212121
RGB rgb(33, 33, 33)
HSL hsl(0, 0%, 13%)

Shades of #212121

#1F1F1F#1C1C1C#1A1A1A#171717#141414#121212#0F0F0F#0D0D0D

Tints of #212121

#383838#4F4F4F#666666#7D7D7D#949494#ABABAB#C2C2C2#D9D9D9

Color Pairings & Harmony

Complementary
#212121
Analogous +30°
#212121
Analogous −30°
#212121
Triadic +120°
#212121
Triadic −120°
#212121

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
16.10:1 — AAA pass for normal text
vs. Black (#000000)
1.30:1 — Fail

CSS Snippet

.element {
  color: #212121;
}

.element-bg {
  background-color: #212121;
  color: #ffffff;
}

.element-border {
  border: 2px solid #212121;
}

About #212121

#212121 is a very dark color with very low saturation (nearly achromatic), defined by the hex code #212121. Its exact color model values are rgb(33, 33, 33) in RGB and hsl(0, 0%, 13%) in HSL (hue 0°, saturation 0%, lightness 13%). On a white background the contrast ratio is 16.10:1 — AAA pass for normal text, and on black it is 1.30:1 — Fail. Use #212121 for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of #212121?
The RGB value of #212121 (#212121) is rgb(33, 33, 33). Red = rgb(33, 33, 33), representing the amounts of red, green, and blue light on a 0–255 scale.
Is #212121 accessible on a white background?
The contrast ratio of #212121 on white (#FFFFFF) is 16.10:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 1.30:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with #212121?
Based on color theory, #212121 (hsl(0, 0%, 13%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.