#041F7A

#041f7a ≈ Midnight Blue

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

#041f7a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 12.16% green and 47.84% blue; printed in CMYK it uses 96.72% cyan, 74.59% magenta, 0% yellow and 52.16% black. Its hue angle is 226.27°, with 93.65% saturation and 24.71% 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.17:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.78.

Description generated from the measured properties of this color.

Conversions of #041f7a 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.0241

Readable text 14.17:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.48:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2b2b2b ≈ 0.003% of males
Achromatomaly #212756 ≈ 0.001% of males
Protanopia #00317d ≈ 1.01% of males
Deuteranopia #002578 ≈ 1.27% of males
Tritanopia #00394a ≈ 0.0001% of males
Protanomaly #002a7c ≈ 1.08% of males
Deuteranomaly #002379 ≈ 4.63% of males
Tritanomaly #003161 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-041f7a {
  color: #041f7a;
}
Background
.bg-041f7a {
  background-color: #041f7a;
  color: #ffffff;
}
Border
.border-041f7a {
  border: 2px solid #041f7a;
}
CSS variables
:root {
  --color-primary: #041f7a;
  --color-primary-rgb: 4 31 122;
  --color-primary-hsl: 226 94% 25%;
}
Gradient
.gradient-041f7a {
  background: linear-gradient(135deg, #041f7a, #24047a);
}
Colored shadow
.shadow-041f7a {
  box-shadow: 0 8px 24px rgb(4 31 122 / 0.35);
}

Midnight Blue
#041f7a  rgb(4, 31, 122)  hsl(226, 94%, 25%)  Midnight Blue
#7a5f04  rgb(122, 95, 4)  hsl(46, 94%, 25%)  Field Drab
#7a041f  rgb(122, 4, 31)  hsl(346, 94%, 25%)  Burgundy
#1f7a04  rgb(31, 122, 4)  hsl(106, 94%, 25%)  Green