#0240FF

#0240ff ≈ Han Purple

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

#0240ff is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 0.78% red, 25.1% green and 100% blue; printed in CMYK it uses 99.22% cyan, 74.9% magenta, 0% yellow and 0% black. Its hue angle is 225.3°, with 100% saturation and 50.39% 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 6.6:1 (WCAG AA). The closest named color is Han Purple (#5218fa), ΔE 7.04.

Description generated from the measured properties of this color.

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

Readable text 6.6:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.18:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5d5d5d ≈ 0.003% of males
Achromatomaly #4853b6 ≈ 0.001% of males
Protanopia #0068ff ≈ 1.01% of males
Deuteranopia #0051fc ≈ 1.27% of males
Tritanopia #007a9d ≈ 0.0001% of males
Protanomaly #005bff ≈ 1.08% of males
Deuteranomaly #004bfd ≈ 4.63% of males
Tritanomaly #0068cc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0240ff {
  color: #0240ff;
}
Background
.bg-0240ff {
  background-color: #0240ff;
  color: #ffffff;
}
Border
.border-0240ff {
  border: 2px solid #0240ff;
}
CSS variables
:root {
  --color-primary: #0240ff;
  --color-primary-rgb: 2 64 255;
  --color-primary-hsl: 225 100% 50%;
}
Gradient
.gradient-0240ff {
  background: linear-gradient(135deg, #0240ff, #4302ff);
}
Colored shadow
.shadow-0240ff {
  box-shadow: 0 8px 24px rgb(2 64 255 / 0.35);
}

Han Purple
#0240ff  rgb(2, 64, 255)  hsl(225, 100%, 50%)  Han Purple
#ffc102  rgb(255, 193, 2)  hsl(45, 100%, 50%)  Amber
#ff0240  rgb(255, 2, 64)  hsl(345, 100%, 50%)  Tractor Red
#40ff02  rgb(64, 255, 2)  hsl(105, 100%, 50%)  Harlequin