#04012F - Midnight
Hex color #04012F is called Midnight. It consists of 2% red, 0% green, and 18% blue in RGB color space. In CMYK it is 91% cyan, 98% magenta, 0% yellow, and 82% black. In HSL it is 244° hue, 96% saturation, and 9% lightness (dark) . On this page you can get both color properties and CSS values for such color schemas: HEX, HEXA, RGB, RGBA, HSL, and CMYK; color name, CSS color name, tailwind name for color; shades and tints; monochromatic colors; negative color; and other info.
| Property | Value | CSS |
|---|---|---|
| Name | Midnight | — |
| HEX | #04012F | #04012F |
| HEXA | #04012FFF | #04012FFF |
| RGB | 4, 1, 47 | rgb(4, 1, 47) |
| RGBA | 4, 1, 47, 1 | rgba(4, 1, 47, 1) |
| HSL | 244%, 96%, 9% | hsl(244%, 96%, 9%) |
| CMYK | 91%, 98%, 0%, 82% | cmyk(91%, 98%, 0%, 82%) |
| CSS Name | — | — |
| Tailwind Name | — | — |
| Lightness | 9% (dark) | — |
Negative color
The color opposite to #04012F is #FBFED0.
Preview on black and white
As #04012F has 9% lightness, this color is dark, so it has more contrast with white.
#04012F On White Background
#04012F
#04012F
Text Color
This is how text looks with this color.
#04012F On Black Background
#04012F
#04012F
Text Color
This is how text looks with this color.
Transform color
4, 1, 47rgb(4, 1, 47)