#2D2255

#2d2255 ≈ Midnight Blue

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

#2d2255 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 17.65% red, 13.33% green and 33.33% blue; printed in CMYK it uses 47.06% cyan, 60% magenta, 0% yellow and 66.67% black. Its hue angle is 252.94°, with 42.86% saturation and 23.33% 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.27:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.82.

Description generated from the measured properties of this color.

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

Readable text 14.27:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.47:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2a2a2a ≈ 0.003% of males
Achromatomaly #2b273f ≈ 0.001% of males
Protanopia #072b57 ≈ 1.01% of males
Deuteranopia #092954 ≈ 1.27% of males
Tritanopia #212d37 ≈ 0.0001% of males
Protanomaly #1c2856 ≈ 1.08% of males
Deuteranomaly #1d2754 ≈ 4.63% of males
Tritanomaly #262945 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d2255 {
  color: #2d2255;
}
Background
.bg-2d2255 {
  background-color: #2d2255;
  color: #ffffff;
}
Border
.border-2d2255 {
  border: 2px solid #2d2255;
}
CSS variables
:root {
  --color-primary: #2d2255;
  --color-primary-rgb: 45 34 85;
  --color-primary-hsl: 253 43% 23%;
}
Gradient
.gradient-2d2255 {
  background: linear-gradient(135deg, #2d2255, #462255);
}
Colored shadow
.shadow-2d2255 {
  box-shadow: 0 8px 24px rgb(45 34 85 / 0.35);
}

Midnight Blue
#2d2255  rgb(45, 34, 85)  hsl(253, 43%, 23%)  Midnight Blue
#4a5522  rgb(74, 85, 34)  hsl(73, 43%, 23%)  Army Green
#552d22  rgb(85, 45, 34)  hsl(13, 43%, 23%)  Caput Mortuum
#22552d  rgb(34, 85, 45)  hsl(133, 43%, 23%)  Hunter Green