#2C1940

#2c1940 ≈ Midnight Blue

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

#2c1940 is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 17.25% red, 9.8% green and 25.1% blue; printed in CMYK it uses 31.25% cyan, 60.94% magenta, 0% yellow and 74.9% black. Its hue angle is 269.23°, with 43.82% saturation and 17.45% 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.91:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 12.07.

Description generated from the measured properties of this color.

Conversions of #2c1940 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.016

Readable text 15.91:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.32:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #222222 ≈ 0.003% of males
Achromatomaly #261f30 ≈ 0.001% of males
Protanopia #0c2241 ≈ 1.01% of males
Deuteranopia #12223f ≈ 1.27% of males
Tritanopia #292029 ≈ 0.0001% of males
Protanomaly #1d1e41 ≈ 1.08% of males
Deuteranomaly #1f1f3f ≈ 4.63% of males
Tritanomaly #2a1e34 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2c1940 {
  color: #2c1940;
}
Background
.bg-2c1940 {
  background-color: #2c1940;
  color: #ffffff;
}
Border
.border-2c1940 {
  border: 2px solid #2c1940;
}
CSS variables
:root {
  --color-primary: #2c1940;
  --color-primary-rgb: 44 25 64;
  --color-primary-hsl: 269 44% 17%;
}
Gradient
.gradient-2c1940 {
  background: linear-gradient(135deg, #2c1940, #3f1940);
}
Colored shadow
.shadow-2c1940 {
  box-shadow: 0 8px 24px rgb(44 25 64 / 0.35);
}

Midnight Blue
#2c1940  rgb(44, 25, 64)  hsl(269, 44%, 17%)  Midnight Blue
#2d4019  rgb(45, 64, 25)  hsl(89, 44%, 17%)  Army Green
#402c19  rgb(64, 44, 25)  hsl(29, 44%, 17%)  Bistre
#19402c  rgb(25, 64, 44)  hsl(149, 44%, 17%)  Phthalo Green