#2f2d71 ≈ Midnight Blue
#2f2d71 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 18.43% red, 17.65% green and 44.31% blue; printed in CMYK it uses 58.41% cyan, 60.18% magenta, 0% yellow and 55.69% black. Its hue angle is 241.76°, with 43.04% saturation and 30.98% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and corporate identities. White text on this color reaches a contrast ratio of 12.11:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.04.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #333366 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0367 |
Shades
#2f2d71 mixed progressively with black.
Tints
#2f2d71 mixed progressively with white.
Tones
#2f2d71 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2f2d71 {
color: #2f2d71;
}
.bg-2f2d71 {
background-color: #2f2d71;
color: #ffffff;
}
.border-2f2d71 {
border: 2px solid #2f2d71;
}
:root {
--color-primary: #2f2d71;
--color-primary-rgb: 47 45 113;
--color-primary-hsl: 242 43% 31%;
}
.gradient-2f2d71 {
background: linear-gradient(135deg, #2f2d71, #512d71);
}
.shadow-2f2d71 {
box-shadow: 0 8px 24px rgb(47 45 113 / 0.35);
}
Midnight Blue
#2f2d71 rgb(47, 45, 113) hsl(242, 43%, 31%) Midnight Blue
#6f712d rgb(111, 113, 45) hsl(62, 43%, 31%) Dark Olive Green
#712f2d rgb(113, 47, 45) hsl(2, 43%, 31%) Wine
#2d712f rgb(45, 113, 47) hsl(122, 43%, 31%) Fern Green