#2E2A71

#2e2a71 ≈ Midnight Blue

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

#2e2a71 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 18.04% red, 16.47% green and 44.31% blue; printed in CMYK it uses 59.29% cyan, 62.83% magenta, 0% yellow and 55.69% black. Its hue angle is 243.38°, with 45.81% saturation and 30.39% 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.46:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.14.

Description generated from the measured properties of this color.

Conversions of #2e2a71 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.0343

Readable text 12.46:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.69:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #343434 ≈ 0.003% of males
Achromatomaly #323053 ≈ 0.001% of males
Protanopia #003773 ≈ 1.01% of males
Deuteranopia #003170 ≈ 1.27% of males
Tritanopia #0a3b49 ≈ 0.0001% of males
Protanomaly #153272 ≈ 1.08% of males
Deuteranomaly #132f70 ≈ 4.63% of males
Tritanomaly #1e355c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2e2a71 {
  color: #2e2a71;
}
Background
.bg-2e2a71 {
  background-color: #2e2a71;
  color: #ffffff;
}
Border
.border-2e2a71 {
  border: 2px solid #2e2a71;
}
CSS variables
:root {
  --color-primary: #2e2a71;
  --color-primary-rgb: 46 42 113;
  --color-primary-hsl: 243 46% 30%;
}
Gradient
.gradient-2e2a71 {
  background: linear-gradient(135deg, #2e2a71, #512a71);
}
Colored shadow
.shadow-2e2a71 {
  box-shadow: 0 8px 24px rgb(46 42 113 / 0.35);
}

Midnight Blue
#2e2a71  rgb(46, 42, 113)  hsl(243, 46%, 30%)  Midnight Blue
#6d712a  rgb(109, 113, 42)  hsl(63, 46%, 30%)  Dark Olive Green
#712e2a  rgb(113, 46, 42)  hsl(3, 46%, 30%)  Wine
#2a712e  rgb(42, 113, 46)  hsl(123, 46%, 30%)  Cadmium Green