#040fab Color Information

In a RGB color space, hex #040fab is composed of 1.6% red, 5.9% green and 67.1% blue. Whereas in a CMYK color space, it is composed of 97.7% cyan, 91.2% magenta, 0% yellow and 32.9% black. It has a hue angle of 236 degrees, a saturation of 95.4% and a lightness of 34.3%. #040fab color hex could be obtained by blending #081eff with #000057. Closest websafe color is: #000099.

    • R 2
    • G 6
    • B 67
    RGB color chart
    • C 98
    • M 91
    • Y 0
    • K 33
    CMYK color chart

#040fab color description : Dark blue.

#040fab Color Conversion

The hexadecimal color #040fab has RGB values of R:4, G:15, B:171 and CMYK values of C:0.98, M:0.91, Y:0, K:0.33. Its decimal value is 266155.

Hex triplet 040fab #040fab
RGB Decimal 4, 15, 171 rgb(4,15,171)
RGB Percent 1.6, 5.9, 67.1 rgb(1.6%,5.9%,67.1%)
CMYK 98, 91, 0, 33
HSL 236°, 95.4, 34.3 hsl(236,95.4%,34.3%)
HSV (or HSB) 236°, 97.7, 67.1
Web Safe 000099 #000099
CIE-LAB 21.234, 54.633, -77.553
XYZ 7.57, 3.307, 38.765
xyY 0.152, 0.067, 3.307
CIE-LCH 21.234, 94.865, 305.163
CIE-LUV 21.234, -6.428, -81.918
Hunter-Lab 18.186, 42.48, -113.656
Binary 00000100, 00001111, 10101011

Color Schemes with #040fab

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

Alternatives to #040fab

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

Similar Colors

#040fab Preview

Text with hexadecimal color #040fab

This text has a font color of #040fab.

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

This paragraph has a background color of #040fab.

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

This element has a border color of #040fab.

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

Shades and Tints of #040fab

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

Shade Color Variation
Tint Color Variation

Tones of #040fab

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

Tone Color Variation

Color Blindness Simulator

Below, you can see how #040fab 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
  • #1d1d1d Achromatopsia 0.005% of the population
  • #181a39 Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #003b74 Protanopia 1% of men
  • #003f64 Deuteranopia 1% of men
  • #004346 Tritanopia 0.001% of the population
Trichromacy
  • #012b88 Protanomaly 1% of men, 0.01% of women
  • #012d7d Deuteranomaly 6% of men, 0.4% of women
  • #01306a Tritanomaly 0.01% of the population