Hex Color #000080

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

  • Hex Color #000080
  • RGB color: rgb(0,0,128)
000080 hex color

Background color #000080

#000080
rgb(0,0,128)

Background color #000080 with opacity 0.5

#000080
opacity:0.5
rgb(0,0,128,0.5)

How to use #000080 color code in CSS stylesheet

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

color: #000080;
background-color: #000080;
background-color: rgb(0,0,128);

#000080 CSS codes

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

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

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

Now copy the code below to your CSS file:

.000080 {color:#000080;}

You will get this result: #000080

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

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

You will get this result:

#000080

More examples using #000080 CSS classes

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

#000080 CSS codes using !important

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

#000080 is the same as RGB color (0,0,128)

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

Comments on color #000080

Similar Colors

Here are colors that are similar to #000080

Random Colors

Click on any hex color value to get more info.

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