#040F53

#040f53 ≈ Midnight Blue

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

#040f53 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 32.55% blue; printed in CMYK it uses 95.18% cyan, 81.93% magenta, 0% yellow and 67.45% black. Its hue angle is 231.65°, with 90.8% saturation and 17.06% 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.52:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.23.

Description generated from the measured properties of this color.

Conversions of #040f53 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.0099

Readable text 17.52:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.2:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #191919 ≈ 0.003% of males
Achromatomaly #131639 ≈ 0.001% of males
Protanopia #001d55 ≈ 1.01% of males
Deuteranopia #001552 ≈ 1.27% of males
Tritanopia #002330 ≈ 0.0001% of males
Protanomaly #001854 ≈ 1.08% of males
Deuteranomaly #001352 ≈ 4.63% of males
Tritanomaly #001d41 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040f53 {
  color: #040f53;
}
Background
.bg-040f53 {
  background-color: #040f53;
  color: #ffffff;
}
Border
.border-040f53 {
  border: 2px solid #040f53;
}
CSS variables
:root {
  --color-primary: #040f53;
  --color-primary-rgb: 4 15 83;
  --color-primary-hsl: 232 91% 17%;
}
Gradient
.gradient-040f53 {
  background: linear-gradient(135deg, #040f53, #210453);
}
Colored shadow
.shadow-040f53 {
  box-shadow: 0 8px 24px rgb(4 15 83 / 0.35);
}

Midnight Blue
#040f53  rgb(4, 15, 83)  hsl(232, 91%, 17%)  Midnight Blue
#534804  rgb(83, 72, 4)  hsl(52, 91%, 17%)  Field Drab
#53040f  rgb(83, 4, 15)  hsl(352, 91%, 17%)  Rosewood
#0f5304  rgb(15, 83, 4)  hsl(112, 91%, 17%)  Lincoln Green