#040E6E

#040e6e ≈ Midnight Blue

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

#040e6e is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 5.49% green and 43.14% blue; printed in CMYK it uses 96.36% cyan, 87.27% magenta, 0% yellow and 56.86% black. Its hue angle is 234.34°, with 92.98% saturation and 22.35% 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 16.24:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.76.

Description generated from the measured properties of this color.

Conversions of #040e6e 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.0147

Readable text 16.24:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.29:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #202020 ≈ 0.003% of males
Achromatomaly #181a4b ≈ 0.001% of males
Protanopia #002671 ≈ 1.01% of males
Deuteranopia #001b6c ≈ 1.27% of males
Tritanopia #002e3f ≈ 0.0001% of males
Protanomaly #001e70 ≈ 1.08% of males
Deuteranomaly #00166d ≈ 4.63% of males
Tritanomaly #002456 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040e6e {
  color: #040e6e;
}
Background
.bg-040e6e {
  background-color: #040e6e;
  color: #ffffff;
}
Border
.border-040e6e {
  border: 2px solid #040e6e;
}
CSS variables
:root {
  --color-primary: #040e6e;
  --color-primary-rgb: 4 14 110;
  --color-primary-hsl: 234 93% 22%;
}
Gradient
.gradient-040e6e {
  background: linear-gradient(135deg, #040e6e, #2f046e);
}
Colored shadow
.shadow-040e6e {
  box-shadow: 0 8px 24px rgb(4 14 110 / 0.35);
}

Midnight Blue
#040e6e  rgb(4, 14, 110)  hsl(234, 93%, 22%)  Midnight Blue
#6e6404  rgb(110, 100, 4)  hsl(54, 93%, 22%)  Field Drab
#6e040e  rgb(110, 4, 14)  hsl(354, 93%, 22%)  Rosewood
#0e6e04  rgb(14, 110, 4)  hsl(114, 93%, 22%)  Pakistan Green