Hex Color #000000

Information about #000000 hex color code is provided on this page.

  • Hex Color #000000
  • RGB color: rgb(0,0,0)
  • Short hex code #000
000000 hex color

Background color #000000

#000000
rgb(0,0,0)

Background color #000000 with opacity 0.5

#000000
opacity:0.5
rgb(0,0,0,0.5)

How to use #000000 color code in CSS stylesheet

You can color any HTML element with #000000 hex color using the examples below.

color: #000000;
background-color: #000000;
background-color: rgb(0,0,0);

#000000 CSS codes

You can use CSS classes to color any HTML element with #000000 hex color.

To change the color of the element, add the css class 000000 to any HTML element, such as a div, like in the example below:

<div class='000000'>
Copy this div element to your HTML file
</div>

Now copy the code below to your CSS file:

.000000 {color:#000000;}

You will get this result: #000000

Alternatively, you can change the background color of the element, by using this CSS code:

.000000 {background-color:#000000; padding:10px;}

You will get this result:

#000000

More examples using #000000 CSS classes

.bg-color-000000 {background-color:#000000;}
.hex-color-000000 {color:#000000;}
.border-color-000000 {border:1px solid #000000;}

#000000 CSS codes using !important

.bg-color {background-color:#000000 !important;}
.hex-color {color:#000000 !important;}
.border-color {border:1px solid #000000 !important;}

#000000 is the same as RGB color (0,0,0)

0,0,0 RGB color code is the same color as #000000 hex color code and can be used in css as such: rgb(0,0,0).

The short color code for #000000 hex code is #000

Comments on color #000000

Similar Colors

Here are colors that are similar to #000000

Random Colors

Click on any hex color value to get more info.

The information presented on this page is about #000000 web color code. For information about different color codes visit gethexcolor.com