#2C0138 - Midnight Purple
Hex color #2C0138 is called Midnight Purple. It consists of 17% red, 0% green, and 22% blue in RGB color space. In CMYK it is 21% cyan, 98% magenta, 0% yellow, and 78% black. In HSL it is 287° hue, 96% saturation, and 11% 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 Purple | — |
| HEX | #2C0138 | #2C0138 |
| HEXA | #2C0138FF | #2C0138FF |
| RGB | 44, 1, 56 | rgb(44, 1, 56) |
| RGBA | 44, 1, 56, 1 | rgba(44, 1, 56, 1) |
| HSL | 287%, 96%, 11% | hsl(287%, 96%, 11%) |
| CMYK | 21%, 98%, 0%, 78% | cmyk(21%, 98%, 0%, 78%) |
| CSS Name | — | — |
| Tailwind Name | — | — |
| Lightness | 11% (dark) | — |
Negative color
The color opposite to #2C0138 is #D3FEC7.
Preview on black and white
As #2C0138 has 11% lightness, this color is dark, so it has more contrast with white.
#2C0138 On White Background
#2C0138
#2C0138
Text Color
This is how text looks with this color.
#2C0138 On Black Background
#2C0138
#2C0138
Text Color
This is how text looks with this color.
Transform color
44, 1, 56rgb(44, 1, 56)