⤺ color picker

#0000cd Color Hex (medium blue)

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.

Color information

  • #0000cd is a shade of blue.
  • Blue is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 100%
    • Magenta: 100%
    • Yellow: 0%
    • Key color - black: 19.61%
  • In the HSL model coordinates are:
    • Hue: 240° degrees
    • Saturation: 100%
    • Lightness: 40.2%
  • The values in the RGB color space are:
    • Red: 0 (0%)
    • Green: 0 (0%)
    • Blue: 205 (80.39%)


C: 100%, M: 100%, Y: 0%, K: 19.61%
R: 0, G: 0, B: 205
H: 240°, S: 100%, L: 40.2%

Color harmonies

#0000cd color HTML and CSS codes

Example CSS code:

.setFontColor { color: #0000cd; }
.setBackgroundColor { background-color: #0000cd; }

#0000cd text/font color

How to set font color?

<p style="color:#0000cd">Font color is #0000cd.</p>

Font color is #0000cd.

Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything. Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore

#0000cd background color

How to set background color?

<div style="background-color:#0000cd">Background color is #0000cd.</div>

Background color is #0000cd.

Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage