On this page
Use the palette maker above to build palettes from it and copy the codes. Below, I cover how differs from the near blacks people often confuse it with, how it behaves in print, and where it helps or hurts in interfaces.
#000000 color codes: HEX, RGB, HSL and CMYK
Every format for this color is built from zeros, which makes it the easiest code to read. In hex, each pair of digits is one channel (red, green, blue), and 00 means that channel is empty. Here are the values you are most likely to need.
| Format | Value |
|---|---|
| HEX | (short form #000) |
| RGB | rgb(0, 0, 0) |
| RGB percent | rgb(0%, 0%, 0%) |
| HSL | hsl(0, 0%, 0%) |
| HSB / HSV | 0°, 0%, 0% |
| CMYK (simple conversion) | 0, 0, 0, 100 |
| CIE Lab | L 0, a 0, b 0 |
| HEX with alpha | #000000FF (fully opaque) |
| Android / Flutter | 0xFF000000 |
The hue of 0° in HSL is only a placeholder. Black has no hue and no saturation, so any hue value gives the same result as long as lightness is 0%. That is also why black is called achromatic.
One caution on the CMYK row. The 0, 0, 0, 100 figure is the standard math conversion, not a promise about how ink will look. What you get on paper depends on the press, the paper and the ink limit, which I come back to below.
What #000000 looks like next to near blacks
On a good display, looks like a hole in the screen. On an OLED phone the pixels are actually off, so the black merges with the bezel. On many LCD panels the backlight still glows a little, so and something like can look almost the same.
Differences show up once you put near blacks beside it. Eerie Black () reads as a dark neutral gray. Onyx () has a cool blue edge, and Smoky Black () leans warm and brown. Rich Black in its FOGRA29 form () is nearly indistinguishable from pure black on screen, but it hints at the cool cast that printed black often has.
Most “black” in the real world is one of these near blacks. Black paint, dyed fabric, laptop shells and car trim all carry a faint undertone, and designers pick that undertone deliberately. Pure is the cleanest reference point, and it rarely looks like a physical object.
Lightness is already 0%, so shade tools can only move black toward gray. To get depth, add a faint tint instead, such as for warm or for cool.
Pure black vs rich black in print
Print is where causes the most surprises. A file set to RGB black converts to CMYK, and depending on the profile you may get K100 only or a mix of all four inks. Neither is wrong, but they behave differently.
Which is the safest choice for small 8 pt body text in a print layout?
A single ink cannot misregister, so thin letters stay crisp with no colored fringes.
K100 alone is a single ink, so it stays sharp. On a big solid panel it can look slightly gray or flat, especially on uncoated stock. I once approved a packaging proof where a large black panel sat beside black text, and the panel looked noticeably weaker than the text. The fix was a rich black for the panel only.
A common rich black recipe is C60 M40 Y40 K100, though the right mix varies by press and paper, so ask your printer for theirs. Here is how I split the decision:
- Small text and thin lines: K100 only, so there are no colored fringes if plates shift slightly.
- Large solid areas: a rich black from your printer’s recommended recipe.
- Never set all four inks to 100%, because the total ink coverage will exceed what most presses allow.
- Order a physical proof for any job where black dominates the layout.
Using #000000 in CSS and UI design
In CSS, , #000, rgb(0 0 0), hsl(0 0% 0%) and the keyword black all produce the same color. Pick whichever your team already uses and stay consistent. Here are the snippets I reach for most:

:root {
--black: #000000;
}
.hero {
background: var(--black);
color: #ffffff;
}
.overlay {
background: rgb(0 0 0 / 50%); /* same as #00000080 */
}
.card {
box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
Black works best in UI as an overlay, a shadow or a text color rather than as a large surface color. A semi-transparent black layer over a photo darkens it evenly and keeps headlines readable. For shadows, pure black at low opacity can look muddy on colored backgrounds, so on tinted surfaces try a shadow built from a very dark version of the background hue.
For secondary text, labels and borders, a softened neutral like #4A4A4A keeps hierarchy clear without the starkness of full black. Keep for the one or two elements that should win attention.
Contrast and WCAG ratios for black
Black on white scores 21:1, the maximum possible. That is far above WCAG AA, which asks for 4.5:1 for normal text and 3:1 for large text and interface components. AAA asks for 7:1 for normal text. I calculated the ratios below from the WCAG relative luminance formula, with as the background.
| Text color on | Contrast ratio | Passes AA for body text |
|---|---|---|
| 21:1 | Yes | |
| 19.8:1 | Yes | |
| 15.3:1 | Yes | |
| 6.66:1 | Yes | |
| 2.5:1 | No | |
| 2.37:1 | No |
The last two rows catch people out. A vivid blue like #0018F9 looks bold, yet it has very little luminance, so it nearly vanishes on black. Mid-dark grays fail for the same reason. Flip the pair and on white scores 8.86:1, which clears even AAA.
What contrast ratio does WCAG AA ask for with normal-size text?
AA needs 4.5:1 for normal text, while 3:1 is the lower bar for large text and UI components.
High contrast is not always the goal for long reading. Some readers find stark white-on-black text glaring, particularly in dim rooms, so a slightly softer off-white such as #F8F8F8 is a kind choice for body copy.
Dark mode: when pure black helps and when it hurts
On OLED screens, black pixels emit no light, so a true background can save battery and gives the deepest possible contrast. That is why some phone wallpapers, media players and watch faces use it. For simple, mostly dark screens it is a strong choice.
For app interfaces with layers, cards and long text, pure black often feels too severe. Material Design’s dark theme guidance suggests a dark gray surface of rather than pure black, partly because elevation is easier to show when the base is not already at the floor. A softer charcoal like #36393E goes further, and works well for chat and community tools.
There is also a practical side effect. On some OLED panels, scrolling light text over true black can cause a faint smearing as pixels switch on and off. Lifting the background by a few steps often reduces that.
Try this: Make three copies of one screen with backgrounds of , and . Check each on your phone in a dim room, scroll the text, and note which one is easiest on your eyes.
Colors that pair well with black
Black is a neutral, so almost any color sits well beside it. The question is how much energy you want. Pure white gives the sharpest look, while off-whites feel more printed and calm. Saturated colors like neon #00FF00 glow against black, and warm orange-reds like #FF5733 stay readable and punchy.
Editorial sites, resumes and print layouts that need sharp readable text.
Luxury packaging, invitations and premium product pages with a warm metallic accent.
Gaming interfaces, event posters and music visuals where glow colors need a dark stage.
Cafe branding, interiors and mood boards that want black softened by brown.
Metallic gold and camel feel premium, since their warmth plays against the cold depth of black. Pastels also work if you want contrast with softness, and black grounds them so they do not look sugary. The palettes below show four moods you can copy straight into a project.
Black in branding, fashion, interiors and art
Brands choose black for authority and restraint. It signals luxury, editorial seriousness or technical precision, and it prints cheaply as a single ink. A one-color black logo is also the most reliable version to keep, since it works on any light background, in newspapers and on stamps.
In fashion, black is the practical neutral: it hides wear and pairs with everything. Dyed black fabric is rarely a true though, and it usually leans warm or cool depending on the dye. In interiors, a “black” wall or fixture is almost always a near black. If a pure one feels cold, a deep brown such as espresso gives similar drama with more warmth.
Painters have long avoided straight tube black in favor of mixing their own darks, for example from a deep blue and a brown. The mix has more life than a flat single pigment, and the same logic applies on screen: a near black with a faint tint usually looks richer than .
Tints and shades of black: the gray ramp
Because black cannot be darkened, its useful variations are tints made by mixing in white. Here is an even ramp in 10% steps:
- 10%:
- 20%:
- 30%:
- 40%:
- 50%:
- 60%:
- 70%:
- 80%:
- 90%:
For a UI, you rarely need all nine. A typical set is three or four: one near-black surface, one border gray, one muted text gray and one light surface. If you want a cooler neutral set, nudge the blue channel up a few points. For a warmer set, nudge red up instead.

Five mistakes people make with pure black
The first is using for everything. When the page background, text, borders and icons are all the same black, nothing has hierarchy. Step the secondary elements down to grays.
The second is trusting RGB-to-CMYK auto conversion without checking what it produces. The third is placing saturated blue or red text on black and assuming it is readable, when the ratio may be far below 4.5:1. I fixed exactly this for a client dashboard, where dark blue links sat on a black header and failed audit until we lightened them.
The fourth is stacking pure black shadows on dark backgrounds, where they disappear. Use lighter surfaces to show depth instead. The fifth is forgetting that black reads differently across screens, so always check key pages on both an LCD and an OLED device.
Colors close to this code
#000000 Color: questions people ask
What is the hex code for black?
The hex code for black is #000000, which you can shorten to #000 in CSS. It means red, green and blue are all at 0 out of 255, so the screen sends no light for that pixel.
What is the RGB value of #000000?
#000000 is rgb(0, 0, 0). In modern CSS you can also write it as rgb(0 0 0), or with 50% opacity as rgb(0 0 0 / 50%).
What is the CMYK value of #000000?
A straight conversion gives C 0, M 0, Y 0, K 100. For large printed areas, many designers use a rich black such as C60 M40 Y40 K100 instead, but the right recipe depends on your printer and paper.
Is #000000 the same as the CSS color black?
Yes. The named color black in CSS is exactly #000000, so color: black and color: #000000 render identically.
Should I use pure black for text and backgrounds?
Pure black text on white is perfectly legible, with a 21:1 contrast ratio. For long reading or dark mode backgrounds, many designers choose a slightly lifted near black such as #121212 or #1A1A1A to reduce glare.
Keep exploring
- #00338D Color: Hex Code, RGB and Matching Palettes
- #36393F Color: Hex Code, RGB and Matching Palettes
- #EDEDED Color: Hex Code, RGB and Palettes
- #2F3136 Color: Hex Code, RGB and Palettes
- #F4F4F4 Color: Hex Code, RGB and Palettes
- #333333 Color: Hex Code, RGB and Palettes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes