#2B124C

#2b124c ≈ Midnight Blue

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

#2b124c is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 16.86% red, 7.06% green and 29.8% blue; printed in CMYK it uses 43.42% cyan, 76.32% magenta, 0% yellow and 70.2% black. Its hue angle is 265.86°, with 61.7% saturation and 18.43% 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 16.23:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.27.

Description generated from the measured properties of this color.

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

Readable text 16.23:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.29:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #202020 ≈ 0.003% of males
Achromatomaly #251b37 ≈ 0.001% of males
Protanopia #00204e ≈ 1.01% of males
Deuteranopia #00204b ≈ 1.27% of males
Tritanopia #23202d ≈ 0.0001% of males
Protanomaly #141b4d ≈ 1.08% of males
Deuteranomaly #161b4b ≈ 4.63% of males
Tritanomaly #261b3c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2b124c {
  color: #2b124c;
}
Background
.bg-2b124c {
  background-color: #2b124c;
  color: #ffffff;
}
Border
.border-2b124c {
  border: 2px solid #2b124c;
}
CSS variables
:root {
  --color-primary: #2b124c;
  --color-primary-rgb: 43 18 76;
  --color-primary-hsl: 266 62% 18%;
}
Gradient
.gradient-2b124c {
  background: linear-gradient(135deg, #2b124c, #48124c);
}
Colored shadow
.shadow-2b124c {
  box-shadow: 0 8px 24px rgb(43 18 76 / 0.35);
}

Midnight Blue
#2b124c  rgb(43, 18, 76)  hsl(266, 62%, 18%)  Midnight Blue
#334c12  rgb(51, 76, 18)  hsl(86, 62%, 18%)  Army Green
#4c2b12  rgb(76, 43, 18)  hsl(26, 62%, 18%)  Bistre
#124c2b  rgb(18, 76, 43)  hsl(146, 62%, 18%)  British Racing Green