Shades of Black
with Hex Codes
Black hex code: #000000 (CSS black) · Eerie black: #1B1B1B · Jet: #343434 · Rich black: #010B13
Pure black #000000 is the darkest value a screen can show, but most modern interfaces avoid it for large surfaces because it creates harsh contrast with white text and makes OLED scrolling smear. Designers usually pick a near-black instead: neutral ones like eerie black #1B1B1B, cool ones with a hint of blue or green, or warm ones with a hint of brown. This page collects the named shades of black and the near-blacks used in popular dark themes.
Complete List of Black Color Shades
Shades of Black — Hex Reference Table
Click any hex code or colour swatch to copy it to your clipboard.
| Preview | Name | Hex Code | RGB | Category |
|---|
How to Use Shades of Black in CSS
Every shade on this page can be used directly in CSS. Copy the hex code and paste it into any CSS color property: color, background-color, border-color, box-shadow, or outline-color.
For transparency effects, convert the hex to RGB using the table above and use rgba(). For a design system, store your chosen shade as a CSS custom property so you can update it site-wide from one place.
Frequently Asked Questions
What is the hex code for black?
#000000 (RGB 0, 0, 0), the CSS named color black. It can also be written as the shorthand #000.What is the best black for dark mode?
#000000 for backgrounds. Google's Material Design recommends #121212, and popular alternatives are eerie black #1B1B1B, Tailwind #0F172A (slate-900) and #18181B (zinc-900). Use light gray text such as #E5E5E5 instead of pure white to reduce glare.What is rich black?
#010B13 (FOGRA29) or #010203 (FOGRA39).What are the different shades of black called?
How do I use black in CSS?
color: #000; or color: black; for solid black, and RGB with an alpha value for shadows and overlays: background: rgba(0, 0, 0, 0.5);. For a softer text color, try #1B1B1B or #111827.