#312a68 ≈ Midnight Blue
#312a68 is a color from the blue family, with low lightness and muted saturation. In the RGB model it is made of 19.22% red, 16.47% green and 40.78% blue; printed in CMYK it uses 52.88% cyan, 59.62% magenta, 0% yellow and 59.22% black. Its hue angle is 246.77°, with 42.47% saturation and 28.63% 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 12.64:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.29.
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.0331 |
Shades
#312a68 mixed progressively with black.
Tints
#312a68 mixed progressively with white.
Tones
#312a68 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-312a68 {
color: #312a68;
}
.bg-312a68 {
background-color: #312a68;
color: #ffffff;
}
.border-312a68 {
border: 2px solid #312a68;
}
:root {
--color-primary: #312a68;
--color-primary-rgb: 49 42 104;
--color-primary-hsl: 247 42% 29%;
}
.gradient-312a68 {
background: linear-gradient(135deg, #312a68, #502a68);
}
.shadow-312a68 {
box-shadow: 0 8px 24px rgb(49 42 104 / 0.35);
}
Midnight Blue
#312a68 rgb(49, 42, 104) hsl(247, 42%, 29%) Midnight Blue
#61682a rgb(97, 104, 42) hsl(67, 42%, 29%) Dark Olive Green
#68312a rgb(104, 49, 42) hsl(7, 42%, 29%) Caput Mortuum
#2a6831 rgb(42, 104, 49) hsl(127, 42%, 29%) Cadmium Green