#04257A

#04257a ≈ Midnight Blue

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

#04257a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 14.51% green and 47.84% blue; printed in CMYK it uses 96.72% cyan, 69.67% magenta, 0% yellow and 52.16% black. Its hue angle is 223.22°, with 93.65% saturation and 24.71% 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 13.54:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.34.

Description generated from the measured properties of this color.

Conversions of #04257a into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#003366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0275

Readable text 13.54:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.55:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2e2e2e ≈ 0.003% of males
Achromatomaly #232b57 ≈ 0.001% of males
Protanopia #00347d ≈ 1.01% of males
Deuteranopia #002978 ≈ 1.27% of males
Tritanopia #003c4c ≈ 0.0001% of males
Protanomaly #002e7c ≈ 1.08% of males
Deuteranomaly #002779 ≈ 4.63% of males
Tritanomaly #003462 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-04257a {
  color: #04257a;
}
Background
.bg-04257a {
  background-color: #04257a;
  color: #ffffff;
}
Border
.border-04257a {
  border: 2px solid #04257a;
}
CSS variables
:root {
  --color-primary: #04257a;
  --color-primary-rgb: 4 37 122;
  --color-primary-hsl: 223 94% 25%;
}
Gradient
.gradient-04257a {
  background: linear-gradient(135deg, #04257a, #1e047a);
}
Colored shadow
.shadow-04257a {
  box-shadow: 0 8px 24px rgb(4 37 122 / 0.35);
}

Midnight Blue
#04257a  rgb(4, 37, 122)  hsl(223, 94%, 25%)  Midnight Blue
#7a5904  rgb(122, 89, 4)  hsl(43, 94%, 25%)  Field Drab
#7a0425  rgb(122, 4, 37)  hsl(343, 94%, 25%)  Burgundy
#257a04  rgb(37, 122, 4)  hsl(103, 94%, 25%)  Green