On this page
This page gives you the exact codes in every format, the real contrast ratios, how it differs from nearby grays, and how it behaves on screen, in print and on a wall. The palette maker above builds matching sets from this code, and you can copy each result as HEX, RGB or HSL.
What color is #333333? Dark Charcoal explained
is a gray with no tint at all. Red, green and blue are all set to 51 out of 255, which is 20% of full brightness on each channel. Because the channels are equal, the color sits exactly on the gray axis and never leans warm or cool by itself. Surrounding colors do that work for it.
The name comes from the look of half-burnt wood: dark, matte and a little soft. Sitting next to white, it reads as near-black. Sitting next to true black, you can see the lift. That small gap is the whole reason designers reach for it.
It also has a three-digit shorthand. Each pair of repeated digits can be written once, so #333 is the same color as in CSS. Few colors compress that neatly, and that makes it easy to type from memory.
#333333 color codes: HEX, RGB, HSL and CMYK
Here are the values you will need most, all computed straight from the hex code.
| Format | Value |
|---|---|
| HEX | (shorthand #333) |
| RGB | rgb(51, 51, 51) |
| HSL | hsl(0, 0%, 20%) |
| HSB / HSV | 0°, 0%, 20% |
| CMYK (straight conversion) | 0, 0, 0, 80 |
| Web-safe | Yes |
| Closest Pantone | 447 C |
| Closest RAL | 7021 |
The hex digits 33 are decimal 51, which is why every number repeats. Since 33 is one of the six steps in the old 216-color web-safe set, counts as web-safe. That matters little today, but it explains why this gray shows up in so many older stylesheets.
Treat the Pantone and RAL numbers as nearest matches only. Color tools list the closest Pantone as 447 C and the closest RAL as 7021, but a printed or painted sample is the only reliable check.
How #333333 compares with black and nearby grays
Small steps in the dark range look very different on a screen. Here is where sits among the grays people commonly confuse it with:
- : pure black, the harshest option for large areas of text or backgrounds
- #1A1A1A: a much deeper gray, a common dark page background
- #231F20: a warm near-black often used as a printer’s black
- : the middle ground, soft but still clearly dark
- #36393F: a similar lightness with a cool, bluish cast
- #4A4A4A: lighter, useful for secondary text and dividers
The difference between and its neighbors is usually temperature rather than lightness. Jet () is practically the same color. Onyx () and Charcoal () tilt cool, while Black Olive () tilts warm. If you put them side by side, the tinted ones show their hue within a second.
Is #333333 good for text? WCAG contrast ratios
Yes, on light backgrounds it is excellent. I computed the ratios from the WCAG relative luminance formula. has a luminance of about 0.033, which gives 12.63:1 against white and 1.66:1 against black. WCAG AA asks for 4.5:1 for normal text and AAA asks for 7:1, so white backgrounds pass both easily.
Roughly what contrast ratio does #333333 text have on a white background?
The luminance of #333333 is low enough to give about 12.63:1 on white, well above the 4.5:1 AA minimum.
On off-white surfaces the ratio dips only slightly: about 11.49:1 on #F4F4F4 and about 10.79:1 on . Both still clear AAA. That is why charcoal on a light gray card is a safe pairing.
Reverse the setup and the gray choice matters. Light text on a background gives about 7.87:1 for and about 5.44:1 for . But gives only about 4.43:1, which just misses AA. I hit this on a client dashboard where muted labels sat at on a charcoal panel. An audit flagged them, and lifting the text to fixed it without changing the look.
Using #333333 in web and UI design
For body text, a softer dark often reads better than pure black on a bright screen, because it cuts glare while keeping strong contrast. Many sites set text to #333 for exactly this reason. The same value works well for headings, icons and borders on light backgrounds.
Which CSS value is exactly the same color as #333333?
Three-digit shorthand doubles each digit, so #333 expands to #333333.
Common uses on screen:
- Body copy and headings on white or light gray
- Icon strokes and form field text
- Footer and navigation bars with light text
- Card surfaces in a dark theme
Define it once as a variable so you can change it later:

:root {
--ink: #333333;
--ink-soft: #4a4a4a;
--paper: #f4f4f4;
}
body {
color: var(--ink);
background: var(--paper);
}
.footer {
background: hsl(0 0% 20%);
color: #cccccc;
}
Try this: Set your page text to , then to , and read a full paragraph on a real phone at normal brightness. Note which one tires your eyes less, then check that your lightest secondary text still passes 4.5:1 on its background.
#333333 as a dark mode background
At 20% lightness, is a fairly light “dark” color. As a full-page background it can look washed out and gray rather than rich. Most polished dark interfaces use something deeper for the page and keep for raised elements.

A simple three-layer system works well: for the page, for cards, and for hover states, inputs and borders. Each step is visible without needing a shadow. White text works on all three, but pure white on dark can glare, so a soft off-white like is gentler for long reading.
Charcoal in branding, interiors and fashion
In branding, charcoal signals seriousness without the starkness of black. It suits law firms, software, architecture studios and premium retail, where a wordmark needs weight but not aggression. It also holds up better than black when a logo gets reproduced small or on textured stock.
Pick charcoal when the logo sits on white and needs to feel refined. Pick true black when it must reproduce in one color on anything, including stamps and fax-style forms.
In interiors, a matte charcoal wall makes a room feel enclosed and calm, and it makes art, brass and plants stand out. It loves warm companions: oak, leather, linen and sand tones like those on the sand color page. In fashion, charcoal is the quiet alternative to black for wool coats and tailoring, and it flatters camel, cream, rust and soft pink.
Printing #333333: why K80 is not always charcoal
The straight CMYK conversion is 0, 0, 0, 80, which means an 80% tint of the black plate alone. That is the cleanest way to print this gray, and the one I recommend for text. A single ink avoids misregistration, so edges stay crisp.
The problem appears when a layout app converts the RGB value through a profile. On one brochure, my body copy came back in the proof as a mix of all four inks. It looked slightly brown and fuzzy at 8 pt. Setting the swatch directly to K80 fixed it.
Expect small shifts across paper. Uncoated stock absorbs ink and prints a little softer and lighter than coated. If the gray matters, ask the printer for a proof, and compare it against a physical Pantone 447 C or similar reference rather than trusting the screen.
Color palettes built around #333333
Because has no hue, it takes any accent without clashing. The real decisions are temperature and contrast. Cool accents like teal and blue feel technical, warm accents like copper and sand feel inviting, and bright accents like green and pink feel playful against the dark.
A neutral UI scale for dashboards, docs and editorial layouts.
Charcoal with sand and copper for interiors, cafes and packaging.
Dark developer-style interfaces with one bright green accent.
Soft pink on charcoal for fashion pages, invitations and beauty brands.
The four palettes below each use as the anchor, and every swatch can be copied. Studio Slate is the safest choice for interfaces. Warm Hearth suits physical spaces and packaging. Terminal Glow and Charcoal Blush are for projects that want an accent with personality.
Best colors to pair with #333333
Light neutrals are the easiest partners: white, and all give contrast above 10:1. For accents, a vivid green such as #00FF00 reaches about 9.21:1 on charcoal, which is the classic terminal look. Use it for small highlights, since it vibrates in large areas.
Soft pink is a more surprising match. #FC8CAB gives about 5.70:1 on , so it passes AA for text, and the warm pink keeps the charcoal from feeling cold. Mustard, coral, teal and sky blue also work well. Pick one accent, use it for actions and highlights, and leave the rest of the page neutral.
Colors close to this code
#333333 Color: questions people ask
What color is 333333?
333333 is the hex code for Dark Charcoal, a neutral dark gray. Its RGB value is 51, 51, 51 and its HSL value is 0, 0%, 20%, so it has no hue and 20% lightness.
Is #333333 black?
No. Pure black is #000000, which has zero light on every channel. #333333 is a dark gray at 20% lightness, though on a screen next to white it reads as almost black.
Is #333333 accessible for body text?
Yes on light backgrounds. It has a 12.63:1 contrast ratio on white, which passes WCAG AA and AAA for normal text. It does not work on black or very dark backgrounds, where the ratio falls to about 1.66:1.
What is the CMYK value of #333333?
A straight conversion gives C 0, M 0, Y 0, K 80. In practice, results depend on your color profile and paper, so check a printed proof before approving a job.
What is the shorthand and complementary color of #333333?
The shorthand is #333, which browsers expand to #333333. Because it is a pure neutral with no hue, it has no true complement, so any accent hue can pair with it.
Keep exploring
- #00338D Color: Hex Code, RGB and Matching Palettes
- #36393E Hex Color: RGB Values and Palettes
- #EDEDED Color: Hex Code, RGB and Palettes
- #2F3136 Color: Hex Code, RGB and Palettes
- #FF5733 Hex Color Code: RGB, Shades and Palettes
- #000000 Color: Black Hex Code, RGB and Palettes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes