Hex color #0000cd, RGB(0, 0, 205) - also known as medium blue - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #0000cd is a shade of blue. In a RGB color space it is composed of 0% red, 0% green and 80.39% blue. In HSL notation it has 240° hue, 100% saturation and 40.2% lightness. The process color (CMYK) is combination of 100% cyan, 100% magenta, 0% yellow and 19.61% key (black). The closest short hexadecimal code of #0000cd is #00c.
Example CSS code:
.setFontColor { color: #0000cd; }
.setBackgroundColor { background-color: #0000cd; }
How to set font color?
<p style="color:#0000cd">Font color is #0000cd.</p>
Font color is #0000cd.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant
How to set background color?
<div style="background-color:#0000cd">Background color is #0000cd.</div>
Background color is #0000cd.
Compromise in colors is grey.
- Edi Rama