#040D70

#040d70 ≈ Midnight Blue

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

#040d70 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.1% green and 43.92% blue; printed in CMYK it uses 96.43% cyan, 88.39% magenta, 0% yellow and 56.08% black. Its hue angle is 235°, with 93.1% saturation and 22.75% 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.19:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.95.

Description generated from the measured properties of this color.

Conversions of #040d70 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.0148

Readable text 16.19:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.3:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #212121 ≈ 0.003% of males
Achromatomaly #181a4d ≈ 0.001% of males
Protanopia #002673 ≈ 1.01% of males
Deuteranopia #001b6e ≈ 1.27% of males
Tritanopia #002e40 ≈ 0.0001% of males
Protanomaly #001e72 ≈ 1.08% of males
Deuteranomaly #00166f ≈ 4.63% of males
Tritanomaly #002557 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040d70 {
  color: #040d70;
}
Background
.bg-040d70 {
  background-color: #040d70;
  color: #ffffff;
}
Border
.border-040d70 {
  border: 2px solid #040d70;
}
CSS variables
:root {
  --color-primary: #040d70;
  --color-primary-rgb: 4 13 112;
  --color-primary-hsl: 235 93% 23%;
}
Gradient
.gradient-040d70 {
  background: linear-gradient(135deg, #040d70, #310470);
}
Colored shadow
.shadow-040d70 {
  box-shadow: 0 8px 24px rgb(4 13 112 / 0.35);
}

Midnight Blue
#040d70  rgb(4, 13, 112)  hsl(235, 93%, 23%)  Midnight Blue
#706704  rgb(112, 103, 4)  hsl(55, 93%, 23%)  Olive
#70040d  rgb(112, 4, 13)  hsl(355, 93%, 23%)  Rosewood
#0d7004  rgb(13, 112, 4)  hsl(115, 93%, 23%)  Pakistan Green