Skip to main content
matte

#333333

Gray 4

#333333 is the CSS named color "darkslategray", an exact match. In RGB it breaks down to red 51, green 51, and blue 51 out of 255 each. In HSL terms that's a hue of 0°, 0% saturation, and 20% 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#333333
RGBrgb(51, 51, 51)
HSLhsl(0° 0% 20%)
HSBhsb(0° 0% 20%)
OKLCHoklch(32% 0.000 0°)
OKLABoklab(32% 0.000 0.000)
LCHlch(21% 0.0 0°)
CMYKcmyk(0% 0% 0% 80%)

Shades (darker)

#333333 · #2d2d2d · #262626 · #202020 · #1a1a1a

Tints (lighter)

#333333 · #454545 · #575757 · #6a6a6a · #7e7e7e

Shades mix #333333 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: 12.63:1 — AAA
On black: 1.66:1 — fails

Frequently asked

What is #333333 in RGB?
#333333 is rgb(51, 51, 51) — red 51, green 51, blue 51 out of 255 each.
Does #333333 pass WCAG contrast on a white background?
It has a contrast ratio of 12.63:1 against white, which passes WCAG AAA for normal text.
What's a good background color to pair with #333333?
White text or a white background gives better contrast (12.63:1) than black (1.66:1).

Related colors

Full color tools