#0F157A

#0f157a ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#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.

Conversions of #0f157a into other color spaces
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 luminance0.0204

Readable text 14.91:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.41:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #202155 ≈ 0.001% of males
Protanopia #002d7d ≈ 1.01% of males
Deuteranopia #002278 ≈ 1.27% of males
Tritanopia #003548 ≈ 0.0001% of males
Protanomaly #00257c ≈ 1.08% of males
Deuteranomaly #001d79 ≈ 4.63% of males
Tritanomaly #002b60 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0f157a {
  color: #0f157a;
}
Background
.bg-0f157a {
  background-color: #0f157a;
  color: #ffffff;
}
Border
.border-0f157a {
  border: 2px solid #0f157a;
}
CSS variables
:root {
  --color-primary: #0f157a;
  --color-primary-rgb: 15 21 122;
  --color-primary-hsl: 237 78% 27%;
}
Gradient
.gradient-0f157a {
  background: linear-gradient(135deg, #0f157a, #3f0f7a);
}
Colored shadow
.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