#040cc6 ≈ Medium Blue
#040cc6 is a color from the blue family, with low lightness and vivid saturation. In the RGB model it is made of 1.57% red, 4.71% green and 77.65% blue; printed in CMYK it uses 97.98% cyan, 93.94% magenta, 0% yellow and 22.35% black. Its hue angle is 237.53°, with 96.04% saturation and 39.61% 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.21:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.01.
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.0437 |
Shades
#040cc6 mixed progressively with black.
Tints
#040cc6 mixed progressively with white.
Tones
#040cc6 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-040cc6 {
color: #040cc6;
}
.bg-040cc6 {
background-color: #040cc6;
color: #ffffff;
}
.border-040cc6 {
border: 2px solid #040cc6;
}
:root {
--color-primary: #040cc6;
--color-primary-rgb: 4 12 198;
--color-primary-hsl: 238 96% 40%;
}
.gradient-040cc6 {
background: linear-gradient(135deg, #040cc6, #5d04c6);
}
.shadow-040cc6 {
box-shadow: 0 8px 24px rgb(4 12 198 / 0.35);
}
Medium Blue
#040cc6 rgb(4, 12, 198) hsl(238, 96%, 40%) Medium Blue
#c6be04 rgb(198, 190, 4) hsl(58, 96%, 40%) Citrine
#c6040c rgb(198, 4, 12) hsl(358, 96%, 40%) Venetian Red
#0cc604 rgb(12, 198, 4) hsl(118, 96%, 40%) Lime Green