#c40f2e ≈ Cardinal
#c40f2e is a color from the red family, with medium lightness and strong saturation. In the RGB model it is made of 76.86% red, 5.88% green and 18.04% blue; printed in CMYK it uses 0% cyan, 92.35% magenta, 76.53% yellow and 23.14% black. Its hue angle is 349.72°, with 85.78% saturation and 41.37% lightness in HSL. It is a warm color, often associated with energy, passion and urgency. Designers typically use it for food and restaurant brands, sales and promotions and call-to-action buttons. White text on this color reaches a contrast ratio of 6.08:1 (WCAG AA). The closest named color is Cardinal (#c41e3a), ΔE 2.75.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc0033 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1227 |
Shades
#c40f2e mixed progressively with black.
Tints
#c40f2e mixed progressively with white.
Tones
#c40f2e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c40f2e {
color: #c40f2e;
}
.bg-c40f2e {
background-color: #c40f2e;
color: #ffffff;
}
.border-c40f2e {
border: 2px solid #c40f2e;
}
:root {
--color-primary: #c40f2e;
--color-primary-rgb: 196 15 46;
--color-primary-hsl: 350 86% 41%;
}
.gradient-c40f2e {
background: linear-gradient(135deg, #c40f2e, #c44a0f);
}
.shadow-c40f2e {
box-shadow: 0 8px 24px rgb(196 15 46 / 0.35);
}
Cardinal
#c40f2e rgb(196, 15, 46) hsl(350, 86%, 41%) Cardinal
#0fc4a5 rgb(15, 196, 165) hsl(170, 86%, 41%) Caribbean Green
#2ec40f rgb(46, 196, 15) hsl(110, 86%, 41%) Lime Green
#0f2ec4 rgb(15, 46, 196) hsl(230, 86%, 41%) Persian Blue