#020128 - Midnight
Hex color #020128 is called Midnight. It consists of 1% red, 0% green, and 16% blue in RGB color space. In CMYK it is 95% cyan, 98% magenta, 0% yellow, and 84% black. In HSL it is 242° hue, 95% saturation, and 8% 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 | #020128 | #020128 |
| HEXA | #020128FF | #020128FF |
| RGB | 2, 1, 40 | rgb(2, 1, 40) |
| RGBA | 2, 1, 40, 1 | rgba(2, 1, 40, 1) |
| HSL | 242%, 95%, 8% | hsl(242%, 95%, 8%) |
| CMYK | 95%, 98%, 0%, 84% | cmyk(95%, 98%, 0%, 84%) |
| CSS Name | — | — |
| Tailwind Name | — | — |
| Lightness | 8% (dark) | — |
Negative color
The color opposite to #020128 is #FDFED7.
Preview on black and white
As #020128 has 8% lightness, this color is dark, so it has more contrast with white.
#020128 On White Background
#020128
#020128
Text Color
This is how text looks with this color.
#020128 On Black Background
#020128
#020128
Text Color
This is how text looks with this color.
Transform color
2, 1, 40rgb(2, 1, 40)