#4e2fa6 ≈ Ocean Blue
#4e2fa6 is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 30.59% red, 18.43% green and 65.1% blue; printed in CMYK it uses 53.01% cyan, 71.69% magenta, 0% yellow and 34.9% black. Its hue angle is 255.63°, with 55.87% saturation and 41.76% 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 brand accents. White text on this color reaches a contrast ratio of 9.21:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 5.33.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #663399 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0641 |
Shades
#4e2fa6 mixed progressively with black.
Tints
#4e2fa6 mixed progressively with white.
Tones
#4e2fa6 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-4e2fa6 {
color: #4e2fa6;
}
.bg-4e2fa6 {
background-color: #4e2fa6;
color: #ffffff;
}
.border-4e2fa6 {
border: 2px solid #4e2fa6;
}
:root {
--color-primary: #4e2fa6;
--color-primary-rgb: 78 47 166;
--color-primary-hsl: 256 56% 42%;
}
.gradient-4e2fa6 {
background: linear-gradient(135deg, #4e2fa6, #892fa6);
}
.shadow-4e2fa6 {
box-shadow: 0 8px 24px rgb(78 47 166 / 0.35);
}
Ocean Blue
#4e2fa6 rgb(78, 47, 166) hsl(256, 56%, 42%) Ocean Blue
#87a62f rgb(135, 166, 47) hsl(76, 56%, 42%) Apple Green
#a64e2f rgb(166, 78, 47) hsl(16, 56%, 42%) Sienna
#2fa64e rgb(47, 166, 78) hsl(136, 56%, 42%) Shamrock Green