#040df2 ≈ Blue
#040df2 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 5.1% green and 94.9% blue; printed in CMYK it uses 98.35% cyan, 94.63% magenta, 0% yellow and 5.1% black. Its hue angle is 237.73°, with 96.75% saturation and 48.24% 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 8.96:1 (WCAG AAA). The closest named color is Blue (#0000ff), ΔE 1.4.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #0000ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0672 |
Shades
#040df2 mixed progressively with black.
Tints
#040df2 mixed progressively with white.
Tones
#040df2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040df2 {
color: #040df2;
}
.bg-040df2 {
background-color: #040df2;
color: #ffffff;
}
.border-040df2 {
border: 2px solid #040df2;
}
:root {
--color-primary: #040df2;
--color-primary-rgb: 4 13 242;
--color-primary-hsl: 238 97% 48%;
}
.gradient-040df2 {
background: linear-gradient(135deg, #040df2, #7204f2);
}
.shadow-040df2 {
box-shadow: 0 8px 24px rgb(4 13 242 / 0.35);
}
Blue
#040df2 rgb(4, 13, 242) hsl(238, 97%, 48%) Blue
#f2e904 rgb(242, 233, 4) hsl(58, 97%, 48%) Titanium Yellow
#f2040d rgb(242, 4, 13) hsl(358, 97%, 48%) Lust
#0df204 rgb(13, 242, 4) hsl(118, 97%, 48%) Lime