CSS Named Color / Web Safe Color

Copy-ready color values

HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
HSVhsv(0, 0%, 0%)
CMYK approx.cmyk(0, 0, 0, 100)

Color value table

FormatValueCopy
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
HSVhsv(0, 0%, 0%)
CMYK approx.cmyk(0, 0, 0, 100)
CSS keywordblack

Contrast and classification

DarkLightness21.00:1Contrast with white1.00:1Contrast with blackGrayscaleColor family

Shade and tint preview

White 10%
#1A1A1A

White 30%
#4D4D4D

White 70%
#B3B3B3

White 90%
#E6E6E6

Black 10%
#000000

Black 30%
#000000

Black 70%
#000000

Black 90%
#000000

Harmony palettes

Complementary

#FFFFFF
#FFFFFF

Analogous

#000000
#000000

Triadic

#000000
#000000

Split complementary

#FFFFFF
#D1D1D1

Using Black

Black works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-black: #000000;
}

.button-primary {
  background: var(--color-black);
  color: #ffffff;
}

$black: #000000;

// Tailwind arbitrary value
class="bg-[#000000] text-white"