#1A1F5F

#1a1f5f ≈ Midnight Blue

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

#1a1f5f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 10.2% red, 12.16% green and 37.25% blue; printed in CMYK it uses 72.63% cyan, 67.37% magenta, 0% yellow and 62.75% black. Its hue angle is 235.65°, with 57.02% saturation and 23.73% 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.94:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.2.

Description generated from the measured properties of this color.

Conversions of #1a1f5f 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.0203

Readable text 14.94:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.41:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #222444 ≈ 0.001% of males
Protanopia #002a61 ≈ 1.01% of males
Deuteranopia #00245e ≈ 1.27% of males
Tritanopia #002f3b ≈ 0.0001% of males
Protanomaly #002660 ≈ 1.08% of males
Deuteranomaly #00225e ≈ 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-1a1f5f {
  color: #1a1f5f;
}
Background
.bg-1a1f5f {
  background-color: #1a1f5f;
  color: #ffffff;
}
Border
.border-1a1f5f {
  border: 2px solid #1a1f5f;
}
CSS variables
:root {
  --color-primary: #1a1f5f;
  --color-primary-rgb: 26 31 95;
  --color-primary-hsl: 236 57% 24%;
}
Gradient
.gradient-1a1f5f {
  background: linear-gradient(135deg, #1a1f5f, #381a5f);
}
Colored shadow
.shadow-1a1f5f {
  box-shadow: 0 8px 24px rgb(26 31 95 / 0.35);
}

Midnight Blue
#1a1f5f  rgb(26, 31, 95)  hsl(236, 57%, 24%)  Midnight Blue
#5f5a1a  rgb(95, 90, 26)  hsl(56, 57%, 24%)  Army Green
#5f1a1f  rgb(95, 26, 31)  hsl(356, 57%, 24%)  Caput Mortuum
#1f5f1a  rgb(31, 95, 26)  hsl(116, 57%, 24%)  Lincoln Green