#340cb2 ≈ Medium Blue
#340cb2 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 20.39% red, 4.71% green and 69.8% blue; printed in CMYK it uses 70.79% cyan, 93.26% magenta, 0% yellow and 30.2% black. Its hue angle is 254.46°, with 87.37% saturation and 37.25% 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.4:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 3.44.
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.0421 |
Shades
#340cb2 mixed progressively with black.
Tints
#340cb2 mixed progressively with white.
Tones
#340cb2 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-340cb2 {
color: #340cb2;
}
.bg-340cb2 {
background-color: #340cb2;
color: #ffffff;
}
.border-340cb2 {
border: 2px solid #340cb2;
}
:root {
--color-primary: #340cb2;
--color-primary-rgb: 52 12 178;
--color-primary-hsl: 254 87% 37%;
}
.gradient-340cb2 {
background: linear-gradient(135deg, #340cb2, #870cb2);
}
.shadow-340cb2 {
box-shadow: 0 8px 24px rgb(52 12 178 / 0.35);
}
Medium Blue
#340cb2 rgb(52, 12, 178) hsl(254, 87%, 37%) Medium Blue
#8ab20c rgb(138, 178, 12) hsl(74, 87%, 37%) Apple Green
#b2340c rgb(178, 52, 12) hsl(14, 87%, 37%) Rust
#0cb234 rgb(12, 178, 52) hsl(134, 87%, 37%) Kelly Green