HTML named color
Black color code
Use the Black HTML color with HEX #000000, RGB 0,0,0 and HSL 0,0%,0%. Copy CSS examples, shades and accessible contrast combinations.
Neutres
#000000
rgb(0,0,0)
HEX
#000000RGB
rgb(0,0,0)HSL
hsl(0,0%,0%)CSS name
blackHow to use this color
Black can be used for CSS text, backgrounds, borders, badges and interface accents. Test contrast before using it for small text, and pair it with neutral colors for a balanced design.
CSS examples
.text-black {
color: #000000;
}
.bg-black {
background-color: black;
}
.border-black {
border-color: rgb(0,0,0);
}Shades palette
#1F1414#462F2F#714B4B#996666#B48E8E#D0B9B9#EBE0E0