#040242 Hex color

#040242

The hexadecimal color code #040242 corresponds to the code RGB( 4, 2, 66 ). It's a shade of Blue. This color is a combination of red (at 0,02 level), green (at 0,01 level) and blue (at 0,26 level). Its brightness is 13% and its saturation is 94%. It is composed of red at 5%, green at 2% and blue at 91%. The dominant component is blue.


Features

Hue

Saturation

Brightness

242
94
13
Shade of Blue
Hex Code #040242
RGB Code rgb( 4 , 2 , 66)
RGB Code Percentagergb( 1.6% , 0.8% , 25.9% )
HSLhsl( 242 , 94% , 13% )
Complementary
Color
#FBFDBD


Variations of #040242

Lighter Shades

Palette of gradually lightened shades. The lightest shade of #040242 is the color #E5E5EC

#040242

Darker Shades

Palette of progressively darker shades. The darkest shade is #000006.

#040242

Other Shades of Blue

Examples of other colors within the Blue spectrum .

See more



Color Palettes

The complementary color #FBFDBD is the color exactly opposite to #040242 on the color wheel. The triadic palette is created by selecting two colors that are evenly spaced on the color wheel.

Complementary color palette

#040242

Triadic palette



Uses of #040242 in CSS

When using #040242 as the background color, consider selecting a lighter text color for improved readability. If you want to use #040242 as the text color, prefer a light background, such as Blanc.

#040242 as background color

Black text
White text
div{ background: #040242;  }

Colored text

With a white background or
with a dark background
div{ color: #040242;  }

Border

#040242 colored border with a width of 3px
div{ border: 3px solid #040242;  }

Shadow

#040242 shadow colored
div{ box-shadow: 3px 3px 7px #040242; }

Similar Colors

Other color codes similar or equivalent to the specified color code #040242.

Choose another color

Select another color on color wheel.

Selected color: