#502fab ≈ Ocean Blue
#502fab is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 31.37% red, 18.43% green and 67.06% blue; printed in CMYK it uses 53.22% cyan, 72.51% magenta, 0% yellow and 32.94% black. Its hue angle is 255.97°, with 56.88% saturation and 42.75% 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 8.99:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 5.08.
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.0668 |
Shades
#502fab mixed progressively with black.
Tints
#502fab mixed progressively with white.
Tones
#502fab mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-502fab {
color: #502fab;
}
.bg-502fab {
background-color: #502fab;
color: #ffffff;
}
.border-502fab {
border: 2px solid #502fab;
}
:root {
--color-primary: #502fab;
--color-primary-rgb: 80 47 171;
--color-primary-hsl: 256 57% 43%;
}
.gradient-502fab {
background: linear-gradient(135deg, #502fab, #8e2fab);
}
.shadow-502fab {
box-shadow: 0 8px 24px rgb(80 47 171 / 0.35);
}
Ocean Blue
#502fab rgb(80, 47, 171) hsl(256, 57%, 43%) Ocean Blue
#8aab2f rgb(138, 171, 47) hsl(76, 57%, 43%) Apple Green
#ab502f rgb(171, 80, 47) hsl(16, 57%, 43%) Sienna
#2fab50 rgb(47, 171, 80) hsl(136, 57%, 43%) Medium Sea Green