CSS Named Color / Web Safe Color
Copy-ready color values
HEX
#000000RGB
rgb(0, 0, 0)HSL
hsl(0, 0%, 0%)HSV
hsv(0, 0%, 0%)CMYK approx.
cmyk(0, 0, 0, 100)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #000000 | |
| RGB | rgb(0, 0, 0) | |
| HSL | hsl(0, 0%, 0%) | |
| HSV | hsv(0, 0%, 0%) | |
| CMYK approx. | cmyk(0, 0, 0, 100) | |
| CSS keyword | black |
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#FFFFFFAnalogous
#000000#000000Triadic
#000000#000000Split complementary
#FFFFFF#D1D1D1Using 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"