#0240ff ≈ Han Purple
#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.
| 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 luminance | 0.109 |
Shades
#0240ff mixed progressively with black.
Tints
#0240ff mixed progressively with white.
Tones
#0240ff mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-0240ff {
color: #0240ff;
}
.bg-0240ff {
background-color: #0240ff;
color: #ffffff;
}
.border-0240ff {
border: 2px solid #0240ff;
}
:root {
--color-primary: #0240ff;
--color-primary-rgb: 2 64 255;
--color-primary-hsl: 225 100% 50%;
}
.gradient-0240ff {
background: linear-gradient(135deg, #0240ff, #4302ff);
}
.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