#040252

#040252 ≈ Midnight Blue

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

#040252 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, 0.78% green and 32.16% blue; printed in CMYK it uses 95.12% cyan, 97.56% magenta, 0% yellow and 67.84% black. Its hue angle is 241.5°, with 95.24% saturation and 16.47% 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 18.49:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.57.

Description generated from the measured properties of this color.

Conversions of #040252 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.0068

Readable text 18.49:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.14:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #141414 ≈ 0.003% of males
Achromatomaly #0e0e37 ≈ 0.001% of males
Protanopia #001854 ≈ 1.01% of males
Deuteranopia #000f51 ≈ 1.27% of males
Tritanopia #001e2d ≈ 0.0001% of males
Protanomaly #001153 ≈ 1.08% of males
Deuteranomaly #000a51 ≈ 4.63% of males
Tritanomaly #00163f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040252 {
  color: #040252;
}
Background
.bg-040252 {
  background-color: #040252;
  color: #ffffff;
}
Border
.border-040252 {
  border: 2px solid #040252;
}
CSS variables
:root {
  --color-primary: #040252;
  --color-primary-rgb: 4 2 82;
  --color-primary-hsl: 242 95% 16%;
}
Gradient
.gradient-040252 {
  background: linear-gradient(135deg, #040252, #2c0252);
}
Colored shadow
.shadow-040252 {
  box-shadow: 0 8px 24px rgb(4 2 82 / 0.35);
}

Midnight Blue
#040252  rgb(4, 2, 82)  hsl(242, 95%, 16%)  Midnight Blue
#505202  rgb(80, 82, 2)  hsl(62, 95%, 16%)  Army Green
#520402  rgb(82, 4, 2)  hsl(2, 95%, 16%)  Rosewood
#025204  rgb(2, 82, 4)  hsl(122, 95%, 16%)  Lincoln Green