CSS Named Color Reference

Black Color Code

Black·#000000

Neutral FamilyNeutralDark toneLow saturationoklch(0.0% 0.000 0)
HEX
#000000Primary token
RGB
rgb(0, 0, 0)Screen values
HSL
hsl(0 0% 0%)Hue and lightness
CMYK
0, 0, 0, 100Print handoff
LAB
0, 0, 0Perceptual reference
OKLCH
oklch(0.0% 0.000 0)Modern perceptual

Black is a deep, muted CSS named color at #000000. If you searched for black hex code, 000000, or black RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorWhite text
Body text contrast21.00:1
Best UseTypography, surfaces, borders, shadows, and foundational interface structure

Tonal Scale

100#D1D1D1
300#8A8A8A
500#2E2E2E
600#000000
800#000000

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

21.00:1AAA-level contrast

Dark text on this color

Large headings and selective UI.

1.22:1Needs more separation

This color on light surface

Links, borders, and icons on light UI.

19.95:1AAA-level contrast
Best text colorWhite textContrast 21.00:1

Professional Reference

OKLCHoklch(0.0% 0.000 0)
Relative Luminance0.0000
Source TypeCSS Named Color
Classification
Neutral FamilyNeutralDark toneLow saturation
Source Context
Source Type
CSS Named Color
System
CSS
Aliases
Material Black White BLACKTailwind BlackAnt Design Grey 9Ant Design Grey 10
Closest Matches
Tailwind Zinc 950Tailwind Neutral 950Tailwind Stone 950
Color Notes
  • Black is kept as an exact CSS named color for #000000.
  • Queries for black color code, 000000, or black RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

21.00:1AAA

Dark text on this color

Dark text or headings on the current color.

1.22:1Needs more separation

This color on light surface

Use this color for links, strokes, or icons on light UI.

19.95:1AAA

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

1.22:1Needs more separation
Best text colorWhite textContrast 21.00:1 · AAA

Where It Works

  • Use it for text, surfaces, rules, borders, elevation, and layout structure.
  • Choose the exact neutral by contrast role instead of treating all grays as interchangeable.
  • Pair with one clear accent color and a lighter or darker neutral step.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Black is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Core neutrals for typography, surfaces, and systems.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-black: #000000;
  --color-black-rgb: 0 0 0;
}
Utility Class
class="bg-[#000000] text-white"
class="hover:bg-[#000000] ring-1 ring-[#000000]"
JSON Token
{
  "black": "#000000",
  "blackRgb": [0, 0, 0],
  "blackHsl": [0, 0, 0]
}