#040C5B

#040c5b ≈ Midnight Blue

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

#040c5b 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 35.69% blue; printed in CMYK it uses 95.6% cyan, 86.81% magenta, 0% yellow and 64.31% black. Its hue angle is 234.48°, with 91.58% saturation and 18.63% 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.37:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.32.

Description generated from the measured properties of this color.

Conversions of #040c5b 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.0104

Readable text 17.37:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.21:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1a1a1a ≈ 0.003% of males
Achromatomaly #13153e ≈ 0.001% of males
Protanopia #001f5d ≈ 1.01% of males
Deuteranopia #00165a ≈ 1.27% of males
Tritanopia #002534 ≈ 0.0001% of males
Protanomaly #00195c ≈ 1.08% of males
Deuteranomaly #00125a ≈ 4.63% of males
Tritanomaly #001e47 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040c5b {
  color: #040c5b;
}
Background
.bg-040c5b {
  background-color: #040c5b;
  color: #ffffff;
}
Border
.border-040c5b {
  border: 2px solid #040c5b;
}
CSS variables
:root {
  --color-primary: #040c5b;
  --color-primary-rgb: 4 12 91;
  --color-primary-hsl: 234 92% 19%;
}
Gradient
.gradient-040c5b {
  background: linear-gradient(135deg, #040c5b, #28045b);
}
Colored shadow
.shadow-040c5b {
  box-shadow: 0 8px 24px rgb(4 12 91 / 0.35);
}

Midnight Blue
#040c5b  rgb(4, 12, 91)  hsl(234, 92%, 19%)  Midnight Blue
#5b5304  rgb(91, 83, 4)  hsl(54, 92%, 19%)  Field Drab
#5b040c  rgb(91, 4, 12)  hsl(354, 92%, 19%)  Rosewood
#0c5b04  rgb(12, 91, 4)  hsl(114, 92%, 19%)  Lincoln Green