#040A57

#040a57 ≈ Midnight Blue

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

#040a57 is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 3.92% green and 34.12% blue; printed in CMYK it uses 95.4% cyan, 88.51% magenta, 0% yellow and 65.88% black. Its hue angle is 235.66°, with 91.21% saturation and 17.84% 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 17.7:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.01.

Description generated from the measured properties of this color.

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

Readable text 17.7:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.19:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #181818 ≈ 0.003% of males
Achromatomaly #12143b ≈ 0.001% of males
Protanopia #001d59 ≈ 1.01% of males
Deuteranopia #001456 ≈ 1.27% of males
Tritanopia #002331 ≈ 0.0001% of males
Protanomaly #001758 ≈ 1.08% of males
Deuteranomaly #001056 ≈ 4.63% of males
Tritanomaly #001c43 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040a57 {
  color: #040a57;
}
Background
.bg-040a57 {
  background-color: #040a57;
  color: #ffffff;
}
Border
.border-040a57 {
  border: 2px solid #040a57;
}
CSS variables
:root {
  --color-primary: #040a57;
  --color-primary-rgb: 4 10 87;
  --color-primary-hsl: 236 91% 18%;
}
Gradient
.gradient-040a57 {
  background: linear-gradient(135deg, #040a57, #270457);
}
Colored shadow
.shadow-040a57 {
  box-shadow: 0 8px 24px rgb(4 10 87 / 0.35);
}

Midnight Blue
#040a57  rgb(4, 10, 87)  hsl(236, 91%, 18%)  Midnight Blue
#575104  rgb(87, 81, 4)  hsl(56, 91%, 18%)  Army Green
#57040a  rgb(87, 4, 10)  hsl(356, 91%, 18%)  Rosewood
#0a5704  rgb(10, 87, 4)  hsl(116, 91%, 18%)  Lincoln Green