⤺ color picker
0
Reddit

#0040ff Color Hex

Hex color #0040ff, RGB(0, 64, 255) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.


The hex color code #0040ff is a shade of blue-cyan. In a RGB color space it is composed of 0% red, 25.1% green and 100% blue. In HSL notation it has 224.9° hue, 100% saturation and 50% lightness. The process color (CMYK) is combination of 100% cyan, 74.90% magenta, 0% yellow and 0% key (black). The closest short hexadecimal code of #0040ff is #04f.

Color information

  • #0040ff is a shade of blue-cyan.
  • Blue is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 100%
    • Magenta: 74.90%
    • Yellow: 0%
    • Key color - black: 0%
  • In the HSL model coordinates are:
    • Hue: 224.9° degrees
    • Saturation: 100%
    • Lightness: 50%
  • The values in the RGB color space are:
    • Red: 0 (0%)
    • Green: 64 (25.1%)
    • Blue: 255 (100%)

Conversions

Hex:
#0040ff
CMYK:
C: 100%, M: 74.90%, Y: 0%, K: 0%
RGB:
R: 0, G: 64, B: 255
HSL:
H: 224.9°, S: 100%, L: 50%

Color harmonies

#0040ff color HTML and CSS codes

Example CSS code:

.setFontColor { color: #0040ff; }
.setBackgroundColor { background-color: #0040ff; }

#0040ff text/font color

How to set font color?

<p style="color:#0040ff">Font color is #0040ff.</p>

Font color is #0040ff.

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

#0040ff background color

How to set background color?

<div style="background-color:#0040ff">Background color is #0040ff.</div>

Background color is #0040ff.

Compromise in colors is grey.
- Edi Rama