#151F5F

#151f5f ≈ Midnight Blue

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

#151f5f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 8.24% red, 12.16% green and 37.25% blue; printed in CMYK it uses 77.89% cyan, 67.37% magenta, 0% yellow and 62.75% black. Its hue angle is 231.89°, with 63.79% saturation and 22.75% 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.07:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.37.

Description generated from the measured properties of this color.

Conversions of #151f5f into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#003366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0197

Readable text 15.07:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.39:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #262626 ≈ 0.003% of males
Achromatomaly #202444 ≈ 0.001% of males
Protanopia #002a61 ≈ 1.01% of males
Deuteranopia #00235e ≈ 1.27% of males
Tritanopia #00303b ≈ 0.0001% of males
Protanomaly #002660 ≈ 1.08% of males
Deuteranomaly #00215e ≈ 4.63% of males
Tritanomaly #002a4c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-151f5f {
  color: #151f5f;
}
Background
.bg-151f5f {
  background-color: #151f5f;
  color: #ffffff;
}
Border
.border-151f5f {
  border: 2px solid #151f5f;
}
CSS variables
:root {
  --color-primary: #151f5f;
  --color-primary-rgb: 21 31 95;
  --color-primary-hsl: 232 64% 23%;
}
Gradient
.gradient-151f5f {
  background: linear-gradient(135deg, #151f5f, #30155f);
}
Colored shadow
.shadow-151f5f {
  box-shadow: 0 8px 24px rgb(21 31 95 / 0.35);
}

Midnight Blue
#151f5f  rgb(21, 31, 95)  hsl(232, 64%, 23%)  Midnight Blue
#5f5515  rgb(95, 85, 21)  hsl(52, 64%, 23%)  Field Drab
#5f151f  rgb(95, 21, 31)  hsl(352, 64%, 23%)  Rosewood
#1f5f15  rgb(31, 95, 21)  hsl(112, 64%, 23%)  Lincoln Green