#040f8b Color Information

In a RGB color space, hex #040f8b is composed of 1.6% red, 5.9% green and 54.5% blue. Whereas in a CMYK color space, it is composed of 97.1% cyan, 89.2% magenta, 0% yellow and 45.5% black. It has a hue angle of 235.1 degrees, a saturation of 94.4% and a lightness of 28%. #040f8b color hex could be obtained by blending #081eff with #000017. Closest websafe color is: #000099.

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

#040f8b color description : Dark blue.

#040f8b Color Conversion

The hexadecimal color #040f8b has RGB values of R:4, G:15, B:139 and CMYK values of C:0.97, M:0.89, Y:0, K:0.45. Its decimal value is 266123.

Hex triplet 040f8b #040f8b
RGB Decimal 4, 15, 139 rgb(4,15,139)
RGB Percent 1.6, 5.9, 54.5 rgb(1.6%,5.9%,54.5%)
CMYK 97, 89, 0, 45
HSL 235.1°, 94.4, 28 hsl(235.1,94.4%,28%)
HSV (or HSB) 235.1°, 97.1, 54.5
Web Safe 000099 #000099
CIE-LAB 16.656, 45.078, -65.504
XYZ 4.88, 2.231, 24.598
xyY 0.154, 0.07, 2.231
CIE-LCH 16.656, 79.516, 304.535
CIE-LUV 16.656, -5.147, -62.637
Hunter-Lab 14.937, 32.179, -87.182
Binary 00000100, 00001111, 10001011

Color Schemes with #040f8b

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

Alternatives to #040f8b

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

Similar Colors

#040f8b Preview

Text with hexadecimal color #040f8b

This text has a font color of #040f8b.

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

This paragraph has a background color of #040f8b.

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

This element has a border color of #040f8b.

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

Shades and Tints of #040f8b

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, #000106 is the darkest color, while #f1f3ff is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #040f8b

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

Tone Color Variation

Color Blindness Simulator

Below, you can see how #040f8b 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.

  • #1a1a1a Achromatopsia 0.005% of the population
  • #161831 Atypical Achromatopsia 0.001% of the population
  • #003262 Protanopia 1% of men
  • #003554 Deuteranopia 1% of men
  • #00393b Tritanopia 0.001% of the population
  • #012571 Protanomaly 1% of men, 0.01% of women
  • #012768 Deuteranomaly 6% of men, 0.4% of women
  • #012a58 Tritanomaly 0.01% of the population