#040dc2 ≈ Medium Blue
#040dc2 is a color from the blue family, with low lightness and strong saturation. In the RGB model it is made of 1.57% red, 5.1% green and 76.08% blue; printed in CMYK it uses 97.94% cyan, 93.3% magenta, 0% yellow and 23.92% black. Its hue angle is 237.16°, with 95.96% saturation and 38.82% 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 11.4:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.4.
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.0421 |
Shades
#040dc2 mixed progressively with black.
Tints
#040dc2 mixed progressively with white.
Tones
#040dc2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040dc2 {
color: #040dc2;
}
.bg-040dc2 {
background-color: #040dc2;
color: #ffffff;
}
.border-040dc2 {
border: 2px solid #040dc2;
}
:root {
--color-primary: #040dc2;
--color-primary-rgb: 4 13 194;
--color-primary-hsl: 237 96% 39%;
}
.gradient-040dc2 {
background: linear-gradient(135deg, #040dc2, #5a04c2);
}
.shadow-040dc2 {
box-shadow: 0 8px 24px rgb(4 13 194 / 0.35);
}
Medium Blue
#040dc2 rgb(4, 13, 194) hsl(237, 96%, 39%) Medium Blue
#c2b904 rgb(194, 185, 4) hsl(57, 96%, 39%) Old Gold
#c2040d rgb(194, 4, 13) hsl(357, 96%, 39%) Venetian Red
#0dc204 rgb(13, 194, 4) hsl(117, 96%, 39%) Kelly Green