#040ecf ≈ Medium Blue
#040ecf 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.49% green and 81.18% blue; printed in CMYK it uses 98.07% cyan, 93.24% magenta, 0% yellow and 18.82% black. Its hue angle is 237.04°, with 96.21% saturation and 41.37% 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 10.67:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.18.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #0000cc |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0484 |
Shades
#040ecf mixed progressively with black.
Tints
#040ecf mixed progressively with white.
Tones
#040ecf mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040ecf {
color: #040ecf;
}
.bg-040ecf {
background-color: #040ecf;
color: #ffffff;
}
.border-040ecf {
border: 2px solid #040ecf;
}
:root {
--color-primary: #040ecf;
--color-primary-rgb: 4 14 207;
--color-primary-hsl: 237 96% 41%;
}
.gradient-040ecf {
background: linear-gradient(135deg, #040ecf, #5f04cf);
}
.shadow-040ecf {
box-shadow: 0 8px 24px rgb(4 14 207 / 0.35);
}
Medium Blue
#040ecf rgb(4, 14, 207) hsl(237, 96%, 41%) Medium Blue
#cfc504 rgb(207, 197, 4) hsl(57, 96%, 41%) Citrine
#cf040e rgb(207, 4, 14) hsl(357, 96%, 41%) Venetian Red
#0ecf04 rgb(14, 207, 4) hsl(117, 96%, 41%) Lime Green