#2D155F

#2d155f ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#2d155f is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 17.65% red, 8.24% green and 37.25% blue; printed in CMYK it uses 52.63% cyan, 77.89% magenta, 0% yellow and 62.75% black. Its hue angle is 259.46°, with 63.79% saturation and 22.75% 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.17:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.82.

Description generated from the measured properties of this color.

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

Readable text 15.17:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.38:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #262626 ≈ 0.003% of males
Achromatomaly #292044 ≈ 0.001% of males
Protanopia #002761 ≈ 1.01% of males
Deuteranopia #00245e ≈ 1.27% of males
Tritanopia #1c2938 ≈ 0.0001% of males
Protanomaly #0c2160 ≈ 1.08% of males
Deuteranomaly #0e1f5e ≈ 4.63% of males
Tritanomaly #24224b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d155f {
  color: #2d155f;
}
Background
.bg-2d155f {
  background-color: #2d155f;
  color: #ffffff;
}
Border
.border-2d155f {
  border: 2px solid #2d155f;
}
CSS variables
:root {
  --color-primary: #2d155f;
  --color-primary-rgb: 45 21 95;
  --color-primary-hsl: 259 64% 23%;
}
Gradient
.gradient-2d155f {
  background: linear-gradient(135deg, #2d155f, #52155f);
}
Colored shadow
.shadow-2d155f {
  box-shadow: 0 8px 24px rgb(45 21 95 / 0.35);
}

Midnight Blue
#2d155f  rgb(45, 21, 95)  hsl(259, 64%, 23%)  Midnight Blue
#475f15  rgb(71, 95, 21)  hsl(79, 64%, 23%)  Dark Olive Green
#5f2d15  rgb(95, 45, 21)  hsl(19, 64%, 23%)  Caput Mortuum
#155f2d  rgb(21, 95, 45)  hsl(139, 64%, 23%)  Cadmium Green