Hex Color #3498db

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

  • Hex Color #3498db
  • RGB color: rgb(52,152,219)

Background color #3498db

#3498db
rgb(52,152,219)

Background color #3498db with opacity 0.5

#3498db
opacity:0.5
rgb(52,152,219,0.5)

How to use #3498db color code in CSS stylesheet

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

color: #3498db;
background-color: #3498db;
background-color: rgb(52,152,219);

#3498db CSS codes

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

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

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

Now copy the code below to your CSS file:

.3498db {color:#3498db;}

You will get this result: #3498db

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

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

You will get this result:

#3498db

More examples using #3498db CSS classes

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

#3498db CSS codes using !important

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

#3498db is the same as RGB color (52,152,219)

52,152,219 RGB color code is the same color as #3498db hex color code and can be used in css as such: rgb(52,152,219).

Comments on color #3498db

Similar Colors

Here are colors that are similar to #3498db

Random Colors

Click on any hex color value to get more info.

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