#402BA2

#402ba2 ≈ Egyptian Blue

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#402ba2 is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 25.1% red, 16.86% green and 63.53% blue; printed in CMYK it uses 60.49% cyan, 73.46% magenta, 0% yellow and 36.47% black. Its hue angle is 250.59°, with 58.05% saturation and 40.2% 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.07:1 (WCAG AAA). The closest named color is Egyptian Blue (#1034a6), ΔE 5.76.

Description generated from the measured properties of this color.

Conversions of #402ba2 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.0543

Readable text 10.07:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.09:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #424242 ≈ 0.003% of males
Achromatomaly #413a75 ≈ 0.001% of males
Protanopia #0046a5 ≈ 1.01% of males
Deuteranopia #003ea0 ≈ 1.27% of males
Tritanopia #004c64 ≈ 0.0001% of males
Protanomaly #003da4 ≈ 1.08% of males
Deuteranomaly #0037a1 ≈ 4.63% of males
Tritanomaly #264181 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-402ba2 {
  color: #402ba2;
}
Background
.bg-402ba2 {
  background-color: #402ba2;
  color: #ffffff;
}
Border
.border-402ba2 {
  border: 2px solid #402ba2;
}
CSS variables
:root {
  --color-primary: #402ba2;
  --color-primary-rgb: 64 43 162;
  --color-primary-hsl: 251 58% 40%;
}
Gradient
.gradient-402ba2 {
  background: linear-gradient(135deg, #402ba2, #7c2ba2);
}
Colored shadow
.shadow-402ba2 {
  box-shadow: 0 8px 24px rgb(64 43 162 / 0.35);
}

Egyptian Blue
#402ba2  rgb(64, 43, 162)  hsl(251, 58%, 40%)  Egyptian Blue
#8da22b  rgb(141, 162, 43)  hsl(71, 58%, 40%)  Apple Green
#a2402b  rgb(162, 64, 43)  hsl(11, 58%, 40%)  Chestnut
#2ba240  rgb(43, 162, 64)  hsl(131, 58%, 40%)  Shamrock Green