#21126e ≈ Midnight Blue
#21126e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.94% red, 7.06% green and 43.14% blue; printed in CMYK it uses 70% cyan, 83.64% magenta, 0% yellow and 56.86% black. Its hue angle is 249.78°, with 71.88% saturation and 25.1% 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 luxury branding. White text on this color reaches a contrast ratio of 15.26:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.19.
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.0188 |
Shades
#21126e mixed progressively with black.
Tints
#21126e mixed progressively with white.
Tones
#21126e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-21126e {
color: #21126e;
}
.bg-21126e {
background-color: #21126e;
color: #ffffff;
}
.border-21126e {
border: 2px solid #21126e;
}
:root {
--color-primary: #21126e;
--color-primary-rgb: 33 18 110;
--color-primary-hsl: 250 72% 25%;
}
.gradient-21126e {
background: linear-gradient(135deg, #21126e, #4f126e);
}
.shadow-21126e {
box-shadow: 0 8px 24px rgb(33 18 110 / 0.35);
}
Midnight Blue
#21126e rgb(33, 18, 110) hsl(250, 72%, 25%) Midnight Blue
#5f6e12 rgb(95, 110, 18) hsl(70, 72%, 25%) Dark Olive Green
#6e2112 rgb(110, 33, 18) hsl(10, 72%, 25%) Falu Red
#126e21 rgb(18, 110, 33) hsl(130, 72%, 25%) Pakistan Green