#040E4A

#040e4a ≈ Midnight Blue

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

#040e4a 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, 5.49% green and 29.02% blue; printed in CMYK it uses 94.59% cyan, 81.08% magenta, 0% yellow and 70.98% black. Its hue angle is 231.43°, with 89.74% saturation and 15.29% 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 18:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.79.

Description generated from the measured properties of this color.

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

Readable text 18:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.17:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #171717 ≈ 0.003% of males
Achromatomaly #111432 ≈ 0.001% of males
Protanopia #001a4c ≈ 1.01% of males
Deuteranopia #001349 ≈ 1.27% of males
Tritanopia #00202b ≈ 0.0001% of males
Protanomaly #00164b ≈ 1.08% of males
Deuteranomaly #001149 ≈ 4.63% of males
Tritanomaly #001a3a ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040e4a {
  color: #040e4a;
}
Background
.bg-040e4a {
  background-color: #040e4a;
  color: #ffffff;
}
Border
.border-040e4a {
  border: 2px solid #040e4a;
}
CSS variables
:root {
  --color-primary: #040e4a;
  --color-primary-rgb: 4 14 74;
  --color-primary-hsl: 231 90% 15%;
}
Gradient
.gradient-040e4a {
  background: linear-gradient(135deg, #040e4a, #1d044a);
}
Colored shadow
.shadow-040e4a {
  box-shadow: 0 8px 24px rgb(4 14 74 / 0.35);
}

Midnight Blue
#040e4a  rgb(4, 14, 74)  hsl(231, 90%, 15%)  Midnight Blue
#4a4004  rgb(74, 64, 4)  hsl(51, 90%, 15%)  Army Green
#4a040e  rgb(74, 4, 14)  hsl(351, 90%, 15%)  Rosewood
#0e4a04  rgb(14, 74, 4)  hsl(111, 90%, 15%)  Lincoln Green