#2A166A

#2a166a ≈ Midnight Blue

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

#2a166a is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 8.63% green and 41.57% blue; printed in CMYK it uses 60.38% cyan, 79.25% magenta, 0% yellow and 58.43% black. Its hue angle is 254.29°, with 65.63% saturation and 25.1% 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 14.77:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.9.

Description generated from the measured properties of this color.

Conversions of #2a166a 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.0211

Readable text 14.77:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.42:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #282828 ≈ 0.003% of males
Achromatomaly #29224b ≈ 0.001% of males
Protanopia #002a6c ≈ 1.01% of males
Deuteranopia #002568 ≈ 1.27% of males
Tritanopia #092e3f ≈ 0.0001% of males
Protanomaly #00236b ≈ 1.08% of males
Deuteranomaly #002069 ≈ 4.63% of males
Tritanomaly #1b2653 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a166a {
  color: #2a166a;
}
Background
.bg-2a166a {
  background-color: #2a166a;
  color: #ffffff;
}
Border
.border-2a166a {
  border: 2px solid #2a166a;
}
CSS variables
:root {
  --color-primary: #2a166a;
  --color-primary-rgb: 42 22 106;
  --color-primary-hsl: 254 66% 25%;
}
Gradient
.gradient-2a166a {
  background: linear-gradient(135deg, #2a166a, #54166a);
}
Colored shadow
.shadow-2a166a {
  box-shadow: 0 8px 24px rgb(42 22 106 / 0.35);
}

Midnight Blue
#2a166a  rgb(42, 22, 106)  hsl(254, 66%, 25%)  Midnight Blue
#566a16  rgb(86, 106, 22)  hsl(74, 66%, 25%)  Dark Olive Green
#6a2a16  rgb(106, 42, 22)  hsl(14, 66%, 25%)  Kobe
#166a2a  rgb(22, 106, 42)  hsl(134, 66%, 25%)  Cadmium Green