#2A135B

#2a135b ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#2a135b is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 7.45% green and 35.69% blue; printed in CMYK it uses 53.85% cyan, 79.12% magenta, 0% yellow and 64.31% black. Its hue angle is 259.17°, with 65.45% saturation and 21.57% 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.64:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.12.

Description generated from the measured properties of this color.

Conversions of #2a135b 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.0171

Readable text 15.64:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.34:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #232323 ≈ 0.003% of males
Achromatomaly #261e41 ≈ 0.001% of males
Protanopia #00255d ≈ 1.01% of males
Deuteranopia #00225a ≈ 1.27% of males
Tritanopia #192636 ≈ 0.0001% of males
Protanomaly #091f5c ≈ 1.08% of males
Deuteranomaly #0b1d5a ≈ 4.63% of males
Tritanomaly #212047 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a135b {
  color: #2a135b;
}
Background
.bg-2a135b {
  background-color: #2a135b;
  color: #ffffff;
}
Border
.border-2a135b {
  border: 2px solid #2a135b;
}
CSS variables
:root {
  --color-primary: #2a135b;
  --color-primary-rgb: 42 19 91;
  --color-primary-hsl: 259 65% 22%;
}
Gradient
.gradient-2a135b {
  background: linear-gradient(135deg, #2a135b, #4e135b);
}
Colored shadow
.shadow-2a135b {
  box-shadow: 0 8px 24px rgb(42 19 91 / 0.35);
}

Midnight Blue
#2a135b  rgb(42, 19, 91)  hsl(259, 65%, 22%)  Midnight Blue
#445b13  rgb(68, 91, 19)  hsl(79, 65%, 22%)  Army Green
#5b2a13  rgb(91, 42, 19)  hsl(19, 65%, 22%)  Caput Mortuum
#135b2a  rgb(19, 91, 42)  hsl(139, 65%, 22%)  Hunter Green