#040C56

#040c56 ≈ Midnight Blue

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

#040c56 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, 4.71% green and 33.73% blue; printed in CMYK it uses 95.35% cyan, 86.05% magenta, 0% yellow and 66.27% black. Its hue angle is 234.15°, with 91.11% saturation and 17.65% 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.62:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.95.

Description generated from the measured properties of this color.

Conversions of #040c56 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.0096

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

Achromatopsia #191919 ≈ 0.003% of males
Achromatomaly #12143a ≈ 0.001% of males
Protanopia #001d58 ≈ 1.01% of males
Deuteranopia #001455 ≈ 1.27% of males
Tritanopia #002331 ≈ 0.0001% of males
Protanomaly #001757 ≈ 1.08% of males
Deuteranomaly #001155 ≈ 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-040c56 {
  color: #040c56;
}
Background
.bg-040c56 {
  background-color: #040c56;
  color: #ffffff;
}
Border
.border-040c56 {
  border: 2px solid #040c56;
}
CSS variables
:root {
  --color-primary: #040c56;
  --color-primary-rgb: 4 12 86;
  --color-primary-hsl: 234 91% 18%;
}
Gradient
.gradient-040c56 {
  background: linear-gradient(135deg, #040c56, #250456);
}
Colored shadow
.shadow-040c56 {
  box-shadow: 0 8px 24px rgb(4 12 86 / 0.35);
}

Midnight Blue
#040c56  rgb(4, 12, 86)  hsl(234, 91%, 18%)  Midnight Blue
#564e04  rgb(86, 78, 4)  hsl(54, 91%, 18%)  Army Green
#56040c  rgb(86, 4, 12)  hsl(354, 91%, 18%)  Rosewood
#0c5604  rgb(12, 86, 4)  hsl(114, 91%, 18%)  Lincoln Green