#271d7b ≈ Midnight Blue
#271d7b is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 15.29% red, 11.37% green and 48.24% blue; printed in CMYK it uses 68.29% cyan, 76.42% magenta, 0% yellow and 51.76% black. Its hue angle is 246.38°, with 61.84% saturation and 29.8% 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 13.57:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.38.
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.0274 |
Shades
#271d7b mixed progressively with black.
Tints
#271d7b mixed progressively with white.
Tones
#271d7b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-271d7b {
color: #271d7b;
}
.bg-271d7b {
background-color: #271d7b;
color: #ffffff;
}
.border-271d7b {
border: 2px solid #271d7b;
}
:root {
--color-primary: #271d7b;
--color-primary-rgb: 39 29 123;
--color-primary-hsl: 246 62% 30%;
}
.gradient-271d7b {
background: linear-gradient(135deg, #271d7b, #561d7b);
}
.shadow-271d7b {
box-shadow: 0 8px 24px rgb(39 29 123 / 0.35);
}
Midnight Blue
#271d7b rgb(39, 29, 123) hsl(246, 62%, 30%) Midnight Blue
#717b1d rgb(113, 123, 29) hsl(66, 62%, 30%) Olive
#7b271d rgb(123, 39, 29) hsl(6, 62%, 30%) Falu Red
#1d7b27 rgb(29, 123, 39) hsl(126, 62%, 30%) Green