#181D5A

#181d5a ≈ Midnight Blue

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

#181d5a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 9.41% red, 11.37% green and 35.29% blue; printed in CMYK it uses 73.33% cyan, 67.78% magenta, 0% yellow and 64.71% black. Its hue angle is 235.45°, with 57.89% 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.42:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.77.

Description generated from the measured properties of this color.

Conversions of #181d5a 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.0181

Readable text 15.42:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.36:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #252525 ≈ 0.003% of males
Achromatomaly #202240 ≈ 0.001% of males
Protanopia #00285c ≈ 1.01% of males
Deuteranopia #002259 ≈ 1.27% of males
Tritanopia #002d38 ≈ 0.0001% of males
Protanomaly #00245b ≈ 1.08% of males
Deuteranomaly #002059 ≈ 4.63% of males
Tritanomaly #002748 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-181d5a {
  color: #181d5a;
}
Background
.bg-181d5a {
  background-color: #181d5a;
  color: #ffffff;
}
Border
.border-181d5a {
  border: 2px solid #181d5a;
}
CSS variables
:root {
  --color-primary: #181d5a;
  --color-primary-rgb: 24 29 90;
  --color-primary-hsl: 235 58% 22%;
}
Gradient
.gradient-181d5a {
  background: linear-gradient(135deg, #181d5a, #34185a);
}
Colored shadow
.shadow-181d5a {
  box-shadow: 0 8px 24px rgb(24 29 90 / 0.35);
}

Midnight Blue
#181d5a  rgb(24, 29, 90)  hsl(235, 58%, 22%)  Midnight Blue
#5a5518  rgb(90, 85, 24)  hsl(55, 58%, 22%)  Army Green
#5a181d  rgb(90, 24, 29)  hsl(355, 58%, 22%)  Caput Mortuum
#1d5a18  rgb(29, 90, 24)  hsl(115, 58%, 22%)  Lincoln Green