#2a237b ≈ Midnight Blue
#2a237b is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 13.73% green and 48.24% blue; printed in CMYK it uses 65.85% cyan, 71.54% magenta, 0% yellow and 51.76% black. Its hue angle is 244.77°, with 55.7% 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.92:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.19.
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.0312 |
Shades
#2a237b mixed progressively with black.
Tints
#2a237b mixed progressively with white.
Tones
#2a237b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-2a237b {
color: #2a237b;
}
.bg-2a237b {
background-color: #2a237b;
color: #ffffff;
}
.border-2a237b {
border: 2px solid #2a237b;
}
:root {
--color-primary: #2a237b;
--color-primary-rgb: 42 35 123;
--color-primary-hsl: 245 56% 31%;
}
.gradient-2a237b {
background: linear-gradient(135deg, #2a237b, #56237b);
}
.shadow-2a237b {
box-shadow: 0 8px 24px rgb(42 35 123 / 0.35);
}
Midnight Blue
#2a237b rgb(42, 35, 123) hsl(245, 56%, 31%) Midnight Blue
#747b23 rgb(116, 123, 35) hsl(65, 56%, 31%) Olive
#7b2a23 rgb(123, 42, 35) hsl(5, 56%, 31%) Falu Red
#237b2a rgb(35, 123, 42) hsl(125, 56%, 31%) Green