#2B204C

#2b204c ≈ Midnight Blue

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

#2b204c is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 16.86% red, 12.55% green and 29.8% blue; printed in CMYK it uses 43.42% cyan, 57.89% magenta, 0% yellow and 70.2% black. Its hue angle is 255°, with 40.74% saturation and 21.18% 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.85:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.55.

Description generated from the measured properties of this color.

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

Readable text 14.85:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.41:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #292539 ≈ 0.001% of males
Protanopia #0d284e ≈ 1.01% of males
Deuteranopia #0f274b ≈ 1.27% of males
Tritanopia #222932 ≈ 0.0001% of males
Protanomaly #1d254d ≈ 1.08% of males
Deuteranomaly #1d244b ≈ 4.63% of males
Tritanomaly #26263e ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2b204c  rgb(43, 32, 76)  hsl(255, 41%, 21%)  Midnight Blue
#414c20  rgb(65, 76, 32)  hsl(75, 41%, 21%)  Army Green
#4c2b20  rgb(76, 43, 32)  hsl(15, 41%, 21%)  Caput Mortuum
#204c2b  rgb(32, 76, 43)  hsl(135, 41%, 21%)  British Racing Green