#2d2874 ≈ Midnight Blue
#2d2874 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 17.65% red, 15.69% green and 45.49% blue; printed in CMYK it uses 61.21% cyan, 65.52% magenta, 0% yellow and 54.51% black. Its hue angle is 243.95°, with 48.72% saturation and 30.59% 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.6:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.39.
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.0334 |
Shades
#2d2874 mixed progressively with black.
Tints
#2d2874 mixed progressively with white.
Tones
#2d2874 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2d2874 {
color: #2d2874;
}
.bg-2d2874 {
background-color: #2d2874;
color: #ffffff;
}
.border-2d2874 {
border: 2px solid #2d2874;
}
:root {
--color-primary: #2d2874;
--color-primary-rgb: 45 40 116;
--color-primary-hsl: 244 49% 31%;
}
.gradient-2d2874 {
background: linear-gradient(135deg, #2d2874, #532874);
}
.shadow-2d2874 {
box-shadow: 0 8px 24px rgb(45 40 116 / 0.35);
}
Midnight Blue
#2d2874 rgb(45, 40, 116) hsl(244, 49%, 31%) Midnight Blue
#6f7428 rgb(111, 116, 40) hsl(64, 49%, 31%) Olive
#742d28 rgb(116, 45, 40) hsl(4, 49%, 31%) Falu Red
#28742d rgb(40, 116, 45) hsl(124, 49%, 31%) Fern Green