#031C7D

#031c7d ≈ Midnight Blue

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

#031c7d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.18% red, 10.98% green and 49.02% blue; printed in CMYK it uses 97.6% cyan, 77.6% magenta, 0% yellow and 50.98% black. Its hue angle is 227.7°, with 95.31% saturation and 25.1% 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 14.32:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.57.

Description generated from the measured properties of this color.

Conversions of #031c7d 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.0233

Readable text 14.32:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.47:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2a2a2a ≈ 0.003% of males
Achromatomaly #202557 ≈ 0.001% of males
Protanopia #003080 ≈ 1.01% of males
Deuteranopia #00247b ≈ 1.27% of males
Tritanopia #00394b ≈ 0.0001% of males
Protanomaly #00297f ≈ 1.08% of males
Deuteranomaly #00217c ≈ 4.63% of males
Tritanomaly #003063 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-031c7d {
  color: #031c7d;
}
Background
.bg-031c7d {
  background-color: #031c7d;
  color: #ffffff;
}
Border
.border-031c7d {
  border: 2px solid #031c7d;
}
CSS variables
:root {
  --color-primary: #031c7d;
  --color-primary-rgb: 3 28 125;
  --color-primary-hsl: 228 95% 25%;
}
Gradient
.gradient-031c7d {
  background: linear-gradient(135deg, #031c7d, #27037d);
}
Colored shadow
.shadow-031c7d {
  box-shadow: 0 8px 24px rgb(3 28 125 / 0.35);
}

Midnight Blue
#031c7d  rgb(3, 28, 125)  hsl(228, 95%, 25%)  Midnight Blue
#7d6403  rgb(125, 100, 3)  hsl(48, 95%, 25%)  Field Drab
#7d031c  rgb(125, 3, 28)  hsl(348, 95%, 25%)  Burgundy
#1c7d03  rgb(28, 125, 3)  hsl(108, 95%, 25%)  Green