#151F5D

#151f5d ≈ Midnight Blue

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

#151f5d 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 36.47% blue; printed in CMYK it uses 77.42% cyan, 66.67% magenta, 0% yellow and 63.53% black. Its hue angle is 231.67°, with 63.16% saturation and 22.35% 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.15:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.74.

Description generated from the measured properties of this color.

Conversions of #151f5d 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.0193

Readable text 15.15: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 #202343 ≈ 0.001% of males
Protanopia #00295f ≈ 1.01% of males
Deuteranopia #00235c ≈ 1.27% of males
Tritanopia #002f3a ≈ 0.0001% of males
Protanomaly #00265e ≈ 1.08% of males
Deuteranomaly #00215c ≈ 4.63% of males
Tritanomaly #00294b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#151f5d  rgb(21, 31, 93)  hsl(232, 63%, 22%)  Midnight Blue
#5d5315  rgb(93, 83, 21)  hsl(52, 63%, 22%)  Field Drab
#5d151f  rgb(93, 21, 31)  hsl(352, 63%, 22%)  Rosewood
#1f5d15  rgb(31, 93, 21)  hsl(112, 63%, 22%)  Lincoln Green