#040A47

#040a47 ≈ Midnight Blue

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

#040a47 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 27.84% blue; printed in CMYK it uses 94.37% cyan, 85.92% magenta, 0% yellow and 72.16% black. Its hue angle is 234.63°, with 89.33% saturation and 14.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 18.43:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.37.

Description generated from the measured properties of this color.

Conversions of #040a47 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.007

Readable text 18.43:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.14:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #141414 ≈ 0.003% of males
Achromatomaly #0f1130 ≈ 0.001% of males
Protanopia #001749 ≈ 1.01% of males
Deuteranopia #001046 ≈ 1.27% of males
Tritanopia #001d28 ≈ 0.0001% of males
Protanomaly #001348 ≈ 1.08% of males
Deuteranomaly #000e46 ≈ 4.63% of males
Tritanomaly #001737 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040a47 {
  color: #040a47;
}
Background
.bg-040a47 {
  background-color: #040a47;
  color: #ffffff;
}
Border
.border-040a47 {
  border: 2px solid #040a47;
}
CSS variables
:root {
  --color-primary: #040a47;
  --color-primary-rgb: 4 10 71;
  --color-primary-hsl: 235 89% 15%;
}
Gradient
.gradient-040a47 {
  background: linear-gradient(135deg, #040a47, #200447);
}
Colored shadow
.shadow-040a47 {
  box-shadow: 0 8px 24px rgb(4 10 71 / 0.35);
}

Midnight Blue
#040a47  rgb(4, 10, 71)  hsl(235, 89%, 15%)  Midnight Blue
#474104  rgb(71, 65, 4)  hsl(55, 89%, 15%)  Army Green
#47040a  rgb(71, 4, 10)  hsl(355, 89%, 15%)  Rosewood
#0a4704  rgb(10, 71, 4)  hsl(115, 89%, 15%)  Lincoln Green