#2D0C3C

#2d0c3c ≈ Midnight Blue

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

#2d0c3c is a color from the magenta family, with very low lightness and muted saturation. In the RGB model it is made of 17.65% red, 4.71% green and 23.53% blue; printed in CMYK it uses 25% cyan, 80% magenta, 0% yellow and 76.47% black. Its hue angle is 281.25°, with 66.67% saturation and 14.12% lightness in HSL. It is a cool color, often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 17.08:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 12.44.

Description generated from the measured properties of this color.

Conversions of #2d0c3c 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.0115

Readable text 17.08:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.23:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1c1c1c ≈ 0.003% of males
Achromatomaly #24172c ≈ 0.001% of males
Protanopia #001a3d ≈ 1.01% of males
Deuteranopia #081d3b ≈ 1.27% of males
Tritanopia #2b1622 ≈ 0.0001% of males
Protanomaly #19153d ≈ 1.08% of males
Deuteranomaly #1d173b ≈ 4.63% of males
Tritanomaly #2c132f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d0c3c {
  color: #2d0c3c;
}
Background
.bg-2d0c3c {
  background-color: #2d0c3c;
  color: #ffffff;
}
Border
.border-2d0c3c {
  border: 2px solid #2d0c3c;
}
CSS variables
:root {
  --color-primary: #2d0c3c;
  --color-primary-rgb: 45 12 60;
  --color-primary-hsl: 281 67% 14%;
}
Gradient
.gradient-2d0c3c {
  background: linear-gradient(135deg, #2d0c3c, #3c0c33);
}
Colored shadow
.shadow-2d0c3c {
  box-shadow: 0 8px 24px rgb(45 12 60 / 0.35);
}

Midnight Blue
#2d0c3c  rgb(45, 12, 60)  hsl(281, 67%, 14%)  Midnight Blue
#1b3c0c  rgb(27, 60, 12)  hsl(101, 67%, 14%)  British Racing Green
#3c2d0c  rgb(60, 45, 12)  hsl(41, 67%, 14%)  Bistre
#0c3c2d  rgb(12, 60, 45)  hsl(161, 67%, 14%)  Phthalo Green