#0f157a ≈ Midnight Blue
#0f157a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 5.88% red, 8.24% green and 47.84% blue; printed in CMYK it uses 87.7% cyan, 82.79% magenta, 0% yellow and 52.16% black. Its hue angle is 236.64°, with 78.1% saturation and 26.86% 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 14.91:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.11.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #000066 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0204 |
Shades
#0f157a mixed progressively with black.
Tints
#0f157a mixed progressively with white.
Tones
#0f157a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0f157a {
color: #0f157a;
}
.bg-0f157a {
background-color: #0f157a;
color: #ffffff;
}
.border-0f157a {
border: 2px solid #0f157a;
}
:root {
--color-primary: #0f157a;
--color-primary-rgb: 15 21 122;
--color-primary-hsl: 237 78% 27%;
}
.gradient-0f157a {
background: linear-gradient(135deg, #0f157a, #3f0f7a);
}
.shadow-0f157a {
box-shadow: 0 8px 24px rgb(15 21 122 / 0.35);
}
Midnight Blue
#0f157a rgb(15, 21, 122) hsl(237, 78%, 27%) Midnight Blue
#7a740f rgb(122, 116, 15) hsl(57, 78%, 27%) Olive
#7a0f15 rgb(122, 15, 21) hsl(357, 78%, 27%) Falu Red
#157a0f rgb(21, 122, 15) hsl(117, 78%, 27%) Green