#2D2D72

#2d2d72 ≈ Midnight Blue

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

#2d2d72 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 17.65% red, 17.65% green and 44.71% blue; printed in CMYK it uses 60.53% cyan, 60.53% magenta, 0% yellow and 55.29% black. Its hue angle is 240°, with 43.4% saturation and 31.18% 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 corporate identities. White text on this color reaches a contrast ratio of 12.14:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.92.

Description generated from the measured properties of this color.

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

Readable text 12.14:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.73:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #363636 ≈ 0.003% of males
Achromatomaly #323254 ≈ 0.001% of males
Protanopia #003974 ≈ 1.01% of males
Deuteranopia #003371 ≈ 1.27% of males
Tritanopia #033d4a ≈ 0.0001% of males
Protanomaly #173473 ≈ 1.08% of males
Deuteranomaly #143171 ≈ 4.63% of males
Tritanomaly #1b375d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d2d72 {
  color: #2d2d72;
}
Background
.bg-2d2d72 {
  background-color: #2d2d72;
  color: #ffffff;
}
Border
.border-2d2d72 {
  border: 2px solid #2d2d72;
}
CSS variables
:root {
  --color-primary: #2d2d72;
  --color-primary-rgb: 45 45 114;
  --color-primary-hsl: 240 43% 31%;
}
Gradient
.gradient-2d2d72 {
  background: linear-gradient(135deg, #2d2d72, #502d72);
}
Colored shadow
.shadow-2d2d72 {
  box-shadow: 0 8px 24px rgb(45 45 114 / 0.35);
}

Midnight Blue
#2d2d72  rgb(45, 45, 114)  hsl(240, 43%, 31%)  Midnight Blue
#72722d  rgb(114, 114, 45)  hsl(60, 43%, 31%)  Olive
#722d2d  rgb(114, 45, 45)  hsl(0, 43%, 31%)  Wine
#2d722d  rgb(45, 114, 45)  hsl(120, 43%, 31%)  Fern Green