#333333 color

#333333 is rgb(51, 51, 51) in RGB and hsl(0, 0%, 20%) in HSL. The closest CSS named color is black (#000000, ΔE 13.4). Use white text on it (contrast 12.63:1).

#333333red
HEX#333333
Short HEX#333
RGBrgb(51, 51, 51)
RGB percentrgb(20%, 20%, 20%)
HSLhsl(0, 0%, 20%)
HSV / HSBhsv(0, 0%, 20%)
CMYKcmyk(0%, 0%, 0%, 80%)

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

About #333333

#333333 is a dark, neutral gray. It belongs to the gray family and reads as a neutral color. All three channels are equal (51), so it is a pure gray at 20% brightness with no hue at all. Colors like this are typically used for borders, secondary text, dividers and neutral UI.

Color conversions

HEX#333333
Short HEX#333
RGBrgb(51, 51, 51)
RGB percentrgb(20%, 20%, 20%)
HSLhsl(0, 0%, 20%)
HSV / HSBhsv(0, 0%, 20%)
CMYKcmyk(0%, 0%, 0%, 80%)
CIELAB (D65)lab(21.2 0 0)
Decimal3355443
Binary00110011 00110011 00110011

HEX 33 33 33 → 51, 51, 51 (each pair is a base-16 number: 3×16 + 3 = 51)

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 #333333

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #333333RatioAA normalAA largeAAA normalAAA large
White text12.63:1PassPassPassPass
Black text1.66:1FailFailFailFail
White text on #333333
Black text on #333333
#333333 text on white
#333333 text on black

Relative luminance is 0.0331 (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
#333333

Deuteranopia
#333333

Tritanopia
#333333

Achromatopsia
#333333

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#00000013.4
darkslategray#2f4f4f14.8
dimgray#69696918.5
darkslateblue#483d8b24.9

Nearby colors

CSS

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

Frequently asked questions

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