#270f4e ≈ Midnight Blue
#270f4e is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 15.29% red, 5.88% green and 30.59% blue; printed in CMYK it uses 50% cyan, 80.77% magenta, 0% yellow and 69.41% black. Its hue angle is 262.86°, with 67.74% saturation and 18.24% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 16.61:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.33.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0132 |
Shades
#270f4e mixed progressively with black.
Tints
#270f4e mixed progressively with white.
Tones
#270f4e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-270f4e {
color: #270f4e;
}
.bg-270f4e {
background-color: #270f4e;
color: #ffffff;
}
.border-270f4e {
border: 2px solid #270f4e;
}
:root {
--color-primary: #270f4e;
--color-primary-rgb: 39 15 78;
--color-primary-hsl: 263 68% 18%;
}
.gradient-270f4e {
background: linear-gradient(135deg, #270f4e, #470f4e);
}
.shadow-270f4e {
box-shadow: 0 8px 24px rgb(39 15 78 / 0.35);
}
Midnight Blue
#270f4e rgb(39, 15, 78) hsl(263, 68%, 18%) Midnight Blue
#364e0f rgb(54, 78, 15) hsl(83, 68%, 18%) Army Green
#4e270f rgb(78, 39, 15) hsl(23, 68%, 18%) Caput Mortuum
#0f4e27 rgb(15, 78, 39) hsl(143, 68%, 18%) British Racing Green