#340ea5 ≈ Zaffre
#340ea5 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 20.39% red, 5.49% green and 64.71% blue; printed in CMYK it uses 68.48% cyan, 91.52% magenta, 0% yellow and 35.29% black. Its hue angle is 255.1°, with 84.36% saturation and 35.1% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. White text on this color reaches a contrast ratio of 11.99:1 (WCAG AAA). The closest named color is Zaffre (#0014a8), ΔE 3.12.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #330099 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0376 |
Shades
#340ea5 mixed progressively with black.
Tints
#340ea5 mixed progressively with white.
Tones
#340ea5 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-340ea5 {
color: #340ea5;
}
.bg-340ea5 {
background-color: #340ea5;
color: #ffffff;
}
.border-340ea5 {
border: 2px solid #340ea5;
}
:root {
--color-primary: #340ea5;
--color-primary-rgb: 52 14 165;
--color-primary-hsl: 255 84% 35%;
}
.gradient-340ea5 {
background: linear-gradient(135deg, #340ea5, #800ea5);
}
.shadow-340ea5 {
box-shadow: 0 8px 24px rgb(52 14 165 / 0.35);
}
Zaffre
#340ea5 rgb(52, 14, 165) hsl(255, 84%, 35%) Zaffre
#7fa50e rgb(127, 165, 14) hsl(75, 84%, 35%) Apple Green
#a5340e rgb(165, 52, 14) hsl(15, 84%, 35%) Rufous
#0ea534 rgb(14, 165, 52) hsl(135, 84%, 35%) Islamic Green