#040A67

#040a67 ≈ Midnight Blue

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

#040a67 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 3.92% green and 40.39% blue; printed in CMYK it uses 96.12% cyan, 90.29% magenta, 0% yellow and 59.61% black. Its hue angle is 236.36°, with 92.52% saturation and 20.98% 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.88:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.61.

Description generated from the measured properties of this color.

Conversions of #040a67 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.0122

Readable text 16.88:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.24:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1d1d1d ≈ 0.003% of males
Achromatomaly #161746 ≈ 0.001% of males
Protanopia #002269 ≈ 1.01% of males
Deuteranopia #001766 ≈ 1.27% of males
Tritanopia #002a3b ≈ 0.0001% of males
Protanomaly #001b68 ≈ 1.08% of males
Deuteranomaly #001366 ≈ 4.63% of males
Tritanomaly #002150 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040a67 {
  color: #040a67;
}
Background
.bg-040a67 {
  background-color: #040a67;
  color: #ffffff;
}
Border
.border-040a67 {
  border: 2px solid #040a67;
}
CSS variables
:root {
  --color-primary: #040a67;
  --color-primary-rgb: 4 10 103;
  --color-primary-hsl: 236 93% 21%;
}
Gradient
.gradient-040a67 {
  background: linear-gradient(135deg, #040a67, #2f0467);
}
Colored shadow
.shadow-040a67 {
  box-shadow: 0 8px 24px rgb(4 10 103 / 0.35);
}

Midnight Blue
#040a67  rgb(4, 10, 103)  hsl(236, 93%, 21%)  Midnight Blue
#676104  rgb(103, 97, 4)  hsl(56, 93%, 21%)  Field Drab
#67040a  rgb(103, 4, 10)  hsl(356, 93%, 21%)  Rosewood
#0a6704  rgb(10, 103, 4)  hsl(116, 93%, 21%)  Pakistan Green