#402A8A

#402a8a ≈ Dark Slate Blue

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

#402a8a is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 25.1% red, 16.47% green and 54.12% blue; printed in CMYK it uses 53.62% cyan, 69.57% magenta, 0% yellow and 45.88% black. Its hue angle is 253.75°, with 53.33% saturation and 35.29% 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 brand accents. White text on this color reaches a contrast ratio of 10.96:1 (WCAG AAA). The closest named color is Dark Slate Blue (#483d8b), ΔE 5.46.

Description generated from the measured properties of this color.

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

Readable text 10.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.92:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3c3c3c ≈ 0.003% of males
Achromatomaly #3e3665 ≈ 0.001% of males
Protanopia #003f8d ≈ 1.01% of males
Deuteranopia #003a88 ≈ 1.27% of males
Tritanopia #234256 ≈ 0.0001% of males
Protanomaly #17378c ≈ 1.08% of males
Deuteranomaly #183489 ≈ 4.63% of males
Tritanomaly #313a6f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-402a8a {
  color: #402a8a;
}
Background
.bg-402a8a {
  background-color: #402a8a;
  color: #ffffff;
}
Border
.border-402a8a {
  border: 2px solid #402a8a;
}
CSS variables
:root {
  --color-primary: #402a8a;
  --color-primary-rgb: 64 42 138;
  --color-primary-hsl: 254 53% 35%;
}
Gradient
.gradient-402a8a {
  background: linear-gradient(135deg, #402a8a, #702a8a);
}
Colored shadow
.shadow-402a8a {
  box-shadow: 0 8px 24px rgb(64 42 138 / 0.35);
}

Dark Slate Blue
#402a8a  rgb(64, 42, 138)  hsl(254, 53%, 35%)  Dark Slate Blue
#748a2a  rgb(116, 138, 42)  hsl(74, 53%, 35%)  Olive Drab
#8a402a  rgb(138, 64, 42)  hsl(14, 53%, 35%)  Chestnut
#2a8a40  rgb(42, 138, 64)  hsl(134, 53%, 35%)  Forest Green