#040F61

#040f61 ≈ Midnight Blue

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

#040f61 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, 5.88% green and 38.04% blue; printed in CMYK it uses 95.88% cyan, 84.54% magenta, 0% yellow and 61.96% black. Its hue angle is 232.9°, with 92.08% saturation and 19.8% 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.85:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.32.

Description generated from the measured properties of this color.

Conversions of #040f61 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.0123

Readable text 16.85:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.25:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1d1d1d ≈ 0.003% of males
Achromatomaly #161842 ≈ 0.001% of males
Protanopia #002263 ≈ 1.01% of males
Deuteranopia #001860 ≈ 1.27% of males
Tritanopia #002938 ≈ 0.0001% of males
Protanomaly #001c62 ≈ 1.08% of males
Deuteranomaly #001560 ≈ 4.63% of males
Tritanomaly #00214c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#040f61  rgb(4, 15, 97)  hsl(233, 92%, 20%)  Midnight Blue
#615604  rgb(97, 86, 4)  hsl(53, 92%, 20%)  Field Drab
#61040f  rgb(97, 4, 15)  hsl(353, 92%, 20%)  Rosewood
#0f6104  rgb(15, 97, 4)  hsl(113, 92%, 20%)  Dark Green