#2D2277

#2d2277 ≈ Midnight Blue

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

#2d2277 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 17.65% red, 13.33% green and 46.67% blue; printed in CMYK it uses 62.18% cyan, 71.43% magenta, 0% yellow and 53.33% black. Its hue angle is 247.76°, with 55.56% saturation and 30% 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 13.07:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.14.

Description generated from the measured properties of this color.

Conversions of #2d2277 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.0303

Readable text 13.07:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.61:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #313131 ≈ 0.003% of males
Achromatomaly #2f2b56 ≈ 0.001% of males
Protanopia #00347a ≈ 1.01% of males
Deuteranopia #002e75 ≈ 1.27% of males
Tritanopia #003849 ≈ 0.0001% of males
Protanomaly #012d79 ≈ 1.08% of males
Deuteranomaly #002976 ≈ 4.63% of males
Tritanomaly #19315f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d2277 {
  color: #2d2277;
}
Background
.bg-2d2277 {
  background-color: #2d2277;
  color: #ffffff;
}
Border
.border-2d2277 {
  border: 2px solid #2d2277;
}
CSS variables
:root {
  --color-primary: #2d2277;
  --color-primary-rgb: 45 34 119;
  --color-primary-hsl: 248 56% 30%;
}
Gradient
.gradient-2d2277 {
  background: linear-gradient(135deg, #2d2277, #572277);
}
Colored shadow
.shadow-2d2277 {
  box-shadow: 0 8px 24px rgb(45 34 119 / 0.35);
}

Midnight Blue
#2d2277  rgb(45, 34, 119)  hsl(248, 56%, 30%)  Midnight Blue
#6c7722  rgb(108, 119, 34)  hsl(68, 56%, 30%)  Olive
#772d22  rgb(119, 45, 34)  hsl(8, 56%, 30%)  Burnt Umber
#22772d  rgb(34, 119, 45)  hsl(128, 56%, 30%)  Green