#040f87 Color Information

In a RGB color space, hex #040f87 is composed of 1.6% red, 5.9% green and 52.9% blue. Whereas in a CMYK color space, it is composed of 97% cyan, 88.9% magenta, 0% yellow and 47.1% black. It has a hue angle of 235 degrees, a saturation of 94.2% and a lightness of 27.3%. #040f87 color hex could be obtained by blending #081eff with #00000f. Closest websafe color is: #000099.

    • R 2
    • G 6
    • B 53
    RGB color chart
    • C 97
    • M 89
    • Y 0
    • K 47
    CMYK color chart

#040f87 color description : Dark blue.

#040f87 Color Conversion

The hexadecimal color #040f87 has RGB values of R:4, G:15, B:135 and CMYK values of C:0.97, M:0.89, Y:0, K:0.47. Its decimal value is 266119.

Hex triplet 040f87 #040f87
RGB Decimal 4, 15, 135 rgb(4,15,135)
RGB Percent 1.6, 5.9, 52.9 rgb(1.6%,5.9%,52.9%)
CMYK 97, 89, 0, 47
HSL 235°, 94.2, 27.3 hsl(235,94.2%,27.3%)
HSV (or HSB) 235°, 97, 52.9
Web Safe 000099 #000099
CIE-LAB 16.086, 43.818, -63.939
XYZ 4.593, 2.116, 23.087
xyY 0.154, 0.071, 2.116
CIE-LCH 16.086, 77.513, 304.423
CIE-LUV 16.086, -4.988, -60.22
Hunter-Lab 14.548, 30.9, -83.908
Binary 00000100, 00001111, 10000111

Color Schemes with #040f87

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

Alternatives to #040f87

Below, you can see some colors close to #040f87. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.

Similar Colors

#040f87 Preview

Text with hexadecimal color #040f87

This text has a font color of #040f87.

<span style="color:#040f87;">Text here</span>
#040f87 background color

This paragraph has a background color of #040f87.

<p style="background-color:#040f87;">Content here</p>
#040f87 border color

This element has a border color of #040f87.

<div style="border:1px solid #040f87;">Content here</div>
CSS codes
.text {color:#040f87;}
.background {background-color:#040f87;}
.border {border:1px solid #040f87;}

Shades and Tints of #040f87

A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #000002 is the darkest color, while #eeeffe is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #040f87

A tone is produced by adding gray to any pure hue. In this case, #444447 is the less saturated color, while #040f87 is the most saturated one.

Tone Color Variation

Color Blindness Simulator

Below, you can see how #040f87 is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.

Monochromacy
  • #191919 Achromatopsia 0.005% of the population
  • #15172f Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #003160 Protanopia 1% of men
  • #003453 Deuteranopia 1% of men
  • #00383a Tritanopia 0.001% of the population
Trichromacy
  • #01256e Protanomaly 1% of men, 0.01% of women
  • #012665 Deuteranomaly 6% of men, 0.4% of women
  • #012956 Tritanomaly 0.01% of the population