Midnight purple : The hexadecimal color #1f0a40

The hexadecimal color #1f0a40 is a color blue whose writing is rgb(31, 10, 64) either 12% of red, 4% of green, 25% of blue; the HSL value is hsl(102, 186%, 37%) either a shade of 102°, a saturation of 186% and a brightness of 37%; the CMYK value is cmyk(52, 84, 0, 75) either 52% of cyan, 84% of magenta, 0% of yellow and 75% of black.

The color combinaison (or color scheme) of the color midnight purple

The gradient colors and complementary colors below allow you to find colors near 1f0a40 for a good harmony of your web design and your artwork.

#1f0a40 : Using the html color in a CSS style

The CSS notation for use that color (1f0a40) as text color is color:#1f0a40;
This is an text example writing in hex color #1f0a40.

The CSS notation for use that color (1f0a40) as background color is background-color:#1f0a40;
This is a box with a background color in hex #1f0a40

The CSS notation for use that color (1f0a40) as border color is border-color:#1f0a40;
This is a box with a border color in hex #1f0a40

The CSS notation for use that color (1f0a40) as shadow color is box-shadow:0 0 20px #1f0a40;
This is a box with a shadow color in hex #1f0a40

Converting the hex color 1f0a40 in RGB, HSL and CMYK

  • Color code HEX : #1f0a40
  • Color code RGB : rgb(31, 10, 64)
  • Color code HSL : hsl(102, 186%, 37%)
  • Color code CMYK : cmyk(52, 84, 0, 75)
  • Color code BIN : 11111 1010 1000000

What is a color HEX ?

The HEX code consists of 3 groups of 2 digits from 00 to FF, representing the primary colors: red, green, blue.
The maximum number of colors in hexadecimal format is 256 x 256 x 256 = 16,777,216

What is a color RGB ?

RGB code consists of 3 groups ranging from 0 to 255 and representing the primary colors: red, green, blue.
The theoretical maximum number is also ~ 16M colors.


Hex color #1f0a40 - midnight purple

What is a color HSL ?

HSL code consists of 3 groups: a first in degree determining the color hue (between 0° and 360°) followed by 2 digits ranging from 0 to 255 and expressed as a percentage, respectively, determine the saturation and brightness of color.

What is a color CMYK ?

The CMYK code consists of four groups of digits ranging from 0 to 100 and represents the percentage of cyan, magenta, yellow and black present in the main color.