Colour Code

HTML Black Colour Code

The standard black colour in every format your CSS might need, plus a few lighter and darker shades.

Colour
Shades
#000000
#1A1A1A
#333333
#4D4D4D
#666666
#000000
Hex
rgb(0, 0, 0)
RGB
hsl(0, 0%, 0%)
HSL

1How To Use

Follow these steps — no coding experience needed.

  1. Pick a formatHex is most common in CSS; RGB and HSL are useful when you need to calculate transparency or lightness.
  2. Copy the codeClick Copy next to the format you need.
  3. Try a shadeUse a lighter shade for hover states, or a darker one for pressed/active states.

2Example Output

What this code looks like once it's on a real page.

Body text, headings and high-contrast UI elements.

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.