#040B60

#040b60 ≈ Midnight Blue

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

#040b60 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.31% green and 37.65% blue; printed in CMYK it uses 95.83% cyan, 88.54% magenta, 0% yellow and 62.35% black. Its hue angle is 235.43°, with 92% saturation and 19.61% 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.19:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.93.

Description generated from the measured properties of this color.

Conversions of #040b60 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.0111

Readable text 17.19:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.22:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1b1b1b ≈ 0.003% of males
Achromatomaly #141641 ≈ 0.001% of males
Protanopia #002062 ≈ 1.01% of males
Deuteranopia #00165f ≈ 1.27% of males
Tritanopia #002737 ≈ 0.0001% of males
Protanomaly #001961 ≈ 1.08% of males
Deuteranomaly #00125f ≈ 4.63% of males
Tritanomaly #001f4b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040b60 {
  color: #040b60;
}
Background
.bg-040b60 {
  background-color: #040b60;
  color: #ffffff;
}
Border
.border-040b60 {
  border: 2px solid #040b60;
}
CSS variables
:root {
  --color-primary: #040b60;
  --color-primary-rgb: 4 11 96;
  --color-primary-hsl: 235 92% 20%;
}
Gradient
.gradient-040b60 {
  background: linear-gradient(135deg, #040b60, #2b0460);
}
Colored shadow
.shadow-040b60 {
  box-shadow: 0 8px 24px rgb(4 11 96 / 0.35);
}

Midnight Blue
#040b60  rgb(4, 11, 96)  hsl(235, 92%, 20%)  Midnight Blue
#605904  rgb(96, 89, 4)  hsl(55, 92%, 20%)  Field Drab
#60040b  rgb(96, 4, 11)  hsl(355, 92%, 20%)  Rosewood
#0b6004  rgb(11, 96, 4)  hsl(115, 92%, 20%)  Dark Green