#402EF8

#402ef8 ≈ Han Purple

  • blue
  • Lightness: medium
  • Saturation: vivid
  • Cool

#402ef8 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 25.1% red, 18.04% green and 97.25% blue; printed in CMYK it uses 74.19% cyan, 81.45% magenta, 0% yellow and 2.75% black. Its hue angle is 245.35°, with 93.52% saturation and 57.65% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and call-to-action buttons. White text on this color reaches a contrast ratio of 7.08:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 2.77.

Description generated from the measured properties of this color.

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

Readable text 7.08:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.96:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #585858 ≈ 0.003% of males
Achromatomaly #504bb0 ≈ 0.001% of males
Protanopia #0061fd ≈ 1.01% of males
Deuteranopia #004ff5 ≈ 1.27% of males
Tritanopia #006f96 ≈ 0.0001% of males
Protanomaly #0051fb ≈ 1.08% of males
Deuteranomaly #0044f6 ≈ 4.63% of males
Tritanomaly #005cc5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-402ef8 {
  color: #402ef8;
}
Background
.bg-402ef8 {
  background-color: #402ef8;
  color: #ffffff;
}
Border
.border-402ef8 {
  border: 2px solid #402ef8;
}
CSS variables
:root {
  --color-primary: #402ef8;
  --color-primary-rgb: 64 46 248;
  --color-primary-hsl: 245 94% 58%;
}
Gradient
.gradient-402ef8 {
  background: linear-gradient(135deg, #402ef8, #a52ef8);
}
Colored shadow
.shadow-402ef8 {
  box-shadow: 0 8px 24px rgb(64 46 248 / 0.35);
}

Han Purple
#402ef8  rgb(64, 46, 248)  hsl(245, 94%, 58%)  Han Purple
#e6f82e  rgb(230, 248, 46)  hsl(65, 94%, 58%)  Lemon Lime
#f8402e  rgb(248, 64, 46)  hsl(5, 94%, 58%)  Cinnabar
#2ef840  rgb(46, 248, 64)  hsl(125, 94%, 58%)  Lime