Carbon color: hex code #333333

#333333 rgb(51, 51, 51)
Shades of gray

Carbon has the hex code #333333. It is a dark gray.

In the RGB color model it is made of 20% red, 20% green and 20% blue (51, 51, 51).

Its hue angle is 0°, with 0% saturation and 20% lightness. For print, the CMYK equivalent is 0% cyan, 0% magenta, 0% yellow and 80% black.

White text is the more readable choice on this background (contrast 12.63:1).

Carbon (#333333) color codes

HEX#333333
RGBrgb(51, 51, 51)
RGB percentrgb(20%, 20%, 20%)
HSLhsl(0, 0%, 20%)
HSV / HSBhsv(0, 0%, 20%)
CMYKcmyk(0%, 0%, 0%, 80%)
CIE LABlab(21.25, 0, 0)
CIE LCHlch(21.25, 0, 158.2)
CIE XYZxyz(3.147, 3.31, 3.605)
Decimal3355443
Short hex#333

Color harmonies

Colors that go with Carbon, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #333333RatioAAAAAAA large
Sample text1.66:1FailFailFail
Sample text12.63:1PassPassPass
#333333 as text onRatioAAAAAAA large
Sample text12.63:1PassPassPass
Sample text1.66:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #333333 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #333333; }
.text { color: #333333; }
.border { border: 2px solid #333333; }
.transparent { background-color: rgb(51 51 51 / 50%); }
.gradient { background: linear-gradient(to right, #333333, #333333); }
Background
Text color
Border

Similar colors

See #333333 on its hex code page

Questions

What color is #333333?
#333333 is a dark gray known as Carbon. It belongs to the gray family of colors.
What is the RGB value of Carbon?
The RGB value is 51, 51, 51: 51 red, 51 green and 51 blue on a 0 to 255 scale.
What is the complementary color of Carbon?
The complementary color is #333333, found by rotating the hue 180° on the color wheel.
Is black or white text better on #333333?
White text. Black text has a contrast ratio of 1.66:1 and white text 12.63:1. WCAG asks for at least 4.5:1 for normal text.