#1F187F

#1f187f ≈ Midnight Blue

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

#1f187f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 9.41% green and 49.8% blue; printed in CMYK it uses 75.59% cyan, 81.1% magenta, 0% yellow and 50.2% black. Its hue angle is 244.08°, with 68.21% saturation and 29.61% 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.04:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.62.

Description generated from the measured properties of this color.

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

Readable text 14.04:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.5:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2c2c2c ≈ 0.003% of males
Achromatomaly #272559 ≈ 0.001% of males
Protanopia #003082 ≈ 1.01% of males
Deuteranopia #00277d ≈ 1.27% of males
Tritanopia #00374b ≈ 0.0001% of males
Protanomaly #002881 ≈ 1.08% of males
Deuteranomaly #00227e ≈ 4.63% of males
Tritanomaly #002e64 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-1f187f {
  color: #1f187f;
}
Background
.bg-1f187f {
  background-color: #1f187f;
  color: #ffffff;
}
Border
.border-1f187f {
  border: 2px solid #1f187f;
}
CSS variables
:root {
  --color-primary: #1f187f;
  --color-primary-rgb: 31 24 127;
  --color-primary-hsl: 244 68% 30%;
}
Gradient
.gradient-1f187f {
  background: linear-gradient(135deg, #1f187f, #53187f);
}
Colored shadow
.shadow-1f187f {
  box-shadow: 0 8px 24px rgb(31 24 127 / 0.35);
}

Midnight Blue
#1f187f  rgb(31, 24, 127)  hsl(244, 68%, 30%)  Midnight Blue
#787f18  rgb(120, 127, 24)  hsl(64, 68%, 30%)  Olive
#7f1f18  rgb(127, 31, 24)  hsl(4, 68%, 30%)  Falu Red
#187f1f  rgb(24, 127, 31)  hsl(124, 68%, 30%)  Green