#1F217E

#1f217e ≈ Midnight Blue

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

#1f217e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 12.94% green and 49.41% blue; printed in CMYK it uses 75.4% cyan, 73.81% magenta, 0% yellow and 50.59% black. Its hue angle is 238.74°, with 60.51% saturation and 30.78% 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 corporate identities. White text on this color reaches a contrast ratio of 13.32:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.75.

Description generated from the measured properties of this color.

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

Readable text 13.32:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.58:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #2a2a59 ≈ 0.001% of males
Protanopia #003481 ≈ 1.01% of males
Deuteranopia #002b7c ≈ 1.27% of males
Tritanopia #003b4d ≈ 0.0001% of males
Protanomaly #002d80 ≈ 1.08% of males
Deuteranomaly #00277d ≈ 4.63% of males
Tritanomaly #003264 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-1f217e {
  color: #1f217e;
}
Background
.bg-1f217e {
  background-color: #1f217e;
  color: #ffffff;
}
Border
.border-1f217e {
  border: 2px solid #1f217e;
}
CSS variables
:root {
  --color-primary: #1f217e;
  --color-primary-rgb: 31 33 126;
  --color-primary-hsl: 239 61% 31%;
}
Gradient
.gradient-1f217e {
  background: linear-gradient(135deg, #1f217e, #4c1f7e);
}
Colored shadow
.shadow-1f217e {
  box-shadow: 0 8px 24px rgb(31 33 126 / 0.35);
}

Midnight Blue
#1f217e  rgb(31, 33, 126)  hsl(239, 61%, 31%)  Midnight Blue
#7e7c1f  rgb(126, 124, 31)  hsl(59, 61%, 31%)  Olive
#7e1f21  rgb(126, 31, 33)  hsl(359, 61%, 31%)  Falu Red
#217e1f  rgb(33, 126, 31)  hsl(119, 61%, 31%)  Green