#2b287c ≈ Midnight Blue
#2b287c is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 16.86% red, 15.69% green and 48.63% blue; printed in CMYK it uses 65.32% cyan, 67.74% magenta, 0% yellow and 51.37% black. Its hue angle is 242.14°, with 51.22% saturation and 32.16% 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.37:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.27.
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.0349 |
Shades
#2b287c mixed progressively with black.
Tints
#2b287c mixed progressively with white.
Tones
#2b287c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2b287c {
color: #2b287c;
}
.bg-2b287c {
background-color: #2b287c;
color: #ffffff;
}
.border-2b287c {
border: 2px solid #2b287c;
}
:root {
--color-primary: #2b287c;
--color-primary-rgb: 43 40 124;
--color-primary-hsl: 242 51% 32%;
}
.gradient-2b287c {
background: linear-gradient(135deg, #2b287c, #55287c);
}
.shadow-2b287c {
box-shadow: 0 8px 24px rgb(43 40 124 / 0.35);
}
Midnight Blue
#2b287c rgb(43, 40, 124) hsl(242, 51%, 32%) Midnight Blue
#797c28 rgb(121, 124, 40) hsl(62, 51%, 32%) Olive
#7c2b28 rgb(124, 43, 40) hsl(2, 51%, 32%) Falu Red
#287c2b rgb(40, 124, 43) hsl(122, 51%, 32%) Green