#402D5D

#402d5d ≈ Dark Slate Blue

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

#402d5d is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 25.1% red, 17.65% green and 36.47% blue; printed in CMYK it uses 31.18% cyan, 51.61% magenta, 0% yellow and 63.53% black. Its hue angle is 263.75°, with 34.78% saturation and 27.06% 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 11.99:1 (WCAG AAA). The closest named color is Dark Slate Blue (#483d8b), ΔE 9.56.

Description generated from the measured properties of this color.

Conversions of #402d5d 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.0376

Readable text 11.99:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.75:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #373737 ≈ 0.003% of males
Achromatomaly #3b3349 ≈ 0.001% of males
Protanopia #1e365f ≈ 1.01% of males
Deuteranopia #23365c ≈ 1.27% of males
Tritanopia #3a3640 ≈ 0.0001% of males
Protanomaly #2f335e ≈ 1.08% of males
Deuteranomaly #31335c ≈ 4.63% of males
Tritanomaly #3d324d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-402d5d {
  color: #402d5d;
}
Background
.bg-402d5d {
  background-color: #402d5d;
  color: #ffffff;
}
Border
.border-402d5d {
  border: 2px solid #402d5d;
}
CSS variables
:root {
  --color-primary: #402d5d;
  --color-primary-rgb: 64 45 93;
  --color-primary-hsl: 264 35% 27%;
}
Gradient
.gradient-402d5d {
  background: linear-gradient(135deg, #402d5d, #582d5d);
}
Colored shadow
.shadow-402d5d {
  box-shadow: 0 8px 24px rgb(64 45 93 / 0.35);
}

Dark Slate Blue
#402d5d  rgb(64, 45, 93)  hsl(264, 35%, 27%)  Dark Slate Blue
#4a5d2d  rgb(74, 93, 45)  hsl(84, 35%, 27%)  Army Green
#5d402d  rgb(93, 64, 45)  hsl(24, 35%, 27%)  Coffee
#2d5d40  rgb(45, 93, 64)  hsl(144, 35%, 27%)  Hunter Green