#2A135A

#2a135a ≈ Midnight Blue

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

#2a135a 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.29% blue; printed in CMYK it uses 53.33% cyan, 78.89% magenta, 0% yellow and 64.71% black. Its hue angle is 259.44°, with 65.14% saturation and 21.37% 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.68:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.29.

Description generated from the measured properties of this color.

Conversions of #2a135a 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.017

Readable text 15.68: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 #261e40 ≈ 0.001% of males
Protanopia #00245c ≈ 1.01% of males
Deuteranopia #002259 ≈ 1.27% of males
Tritanopia #1a2635 ≈ 0.0001% of males
Protanomaly #0a1f5b ≈ 1.08% of males
Deuteranomaly #0c1d59 ≈ 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-2a135a {
  color: #2a135a;
}
Background
.bg-2a135a {
  background-color: #2a135a;
  color: #ffffff;
}
Border
.border-2a135a {
  border: 2px solid #2a135a;
}
CSS variables
:root {
  --color-primary: #2a135a;
  --color-primary-rgb: 42 19 90;
  --color-primary-hsl: 259 65% 21%;
}
Gradient
.gradient-2a135a {
  background: linear-gradient(135deg, #2a135a, #4d135a);
}
Colored shadow
.shadow-2a135a {
  box-shadow: 0 8px 24px rgb(42 19 90 / 0.35);
}

Midnight Blue
#2a135a  rgb(42, 19, 90)  hsl(259, 65%, 21%)  Midnight Blue
#435a13  rgb(67, 90, 19)  hsl(79, 65%, 21%)  Army Green
#5a2a13  rgb(90, 42, 19)  hsl(19, 65%, 21%)  Caput Mortuum
#135a2a  rgb(19, 90, 42)  hsl(139, 65%, 21%)  Hunter Green