Hex Color #0000ff

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

  • Hex Color #0000ff
  • RGB color: rgb(0,0,255)
0000ff hex color

Background color #0000ff

#0000ff
rgb(0,0,255)

Background color #0000ff with opacity 0.5

#0000ff
opacity:0.5
rgb(0,0,255,0.5)

How to use #0000ff color code in CSS stylesheet

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

color: #0000ff;
background-color: #0000ff;
background-color: rgb(0,0,255);

#0000ff CSS codes

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

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

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

Now copy the code below to your CSS file:

.0000ff {color:#0000ff;}

You will get this result: #0000ff

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

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

You will get this result:

#0000ff

More examples using #0000ff CSS classes

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

#0000ff CSS codes using !important

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

#0000ff is the same as RGB color (0,0,255)

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

Comments on color #0000ff

Similar Colors

Here are colors that are similar to #0000ff

Random Colors

Click on any hex color value to get more info.

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