#2A154E

#2a154e ≈ Midnight Blue

  • violet
  • Lightness: very low
  • Saturation: muted
  • Cool

#2a154e is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 16.47% red, 8.24% green and 30.59% blue; printed in CMYK it uses 46.15% cyan, 73.08% magenta, 0% yellow and 69.41% black. Its hue angle is 262.11°, with 57.58% saturation and 19.41% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 15.96:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.72.

Description generated from the measured properties of this color.

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

Readable text 15.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.32:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #222222 ≈ 0.003% of males
Achromatomaly #251d38 ≈ 0.001% of males
Protanopia #002250 ≈ 1.01% of males
Deuteranopia #00214d ≈ 1.27% of males
Tritanopia #21232f ≈ 0.0001% of males
Protanomaly #131e4f ≈ 1.08% of males
Deuteranomaly #161d4d ≈ 4.63% of males
Tritanomaly #251e3e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a154e {
  color: #2a154e;
}
Background
.bg-2a154e {
  background-color: #2a154e;
  color: #ffffff;
}
Border
.border-2a154e {
  border: 2px solid #2a154e;
}
CSS variables
:root {
  --color-primary: #2a154e;
  --color-primary-rgb: 42 21 78;
  --color-primary-hsl: 262 58% 19%;
}
Gradient
.gradient-2a154e {
  background: linear-gradient(135deg, #2a154e, #46154e);
}
Colored shadow
.shadow-2a154e {
  box-shadow: 0 8px 24px rgb(42 21 78 / 0.35);
}

Midnight Blue
#2a154e  rgb(42, 21, 78)  hsl(262, 58%, 19%)  Midnight Blue
#394e15  rgb(57, 78, 21)  hsl(82, 58%, 19%)  Army Green
#4e2a15  rgb(78, 42, 21)  hsl(22, 58%, 19%)  Bistre
#154e2a  rgb(21, 78, 42)  hsl(142, 58%, 19%)  British Racing Green