#4A2FA2

#4a2fa2 ≈ Ocean Blue

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#4a2fa2 is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 29.02% red, 18.43% green and 63.53% blue; printed in CMYK it uses 54.32% cyan, 70.99% magenta, 0% yellow and 36.47% black. Its hue angle is 254.09°, with 55.02% saturation and 40.98% 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.46:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 5.58.

Description generated from the measured properties of this color.

Conversions of #4a2fa2 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#333399
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.061

Readable text 9.46:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.22:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #464646 ≈ 0.003% of males
Achromatomaly #483e76 ≈ 0.001% of males
Protanopia #0049a5 ≈ 1.01% of males
Deuteranopia #0043a0 ≈ 1.27% of males
Tritanopia #264d65 ≈ 0.0001% of males
Protanomaly #1440a4 ≈ 1.08% of males
Deuteranomaly #153ca1 ≈ 4.63% of males
Tritanomaly #384382 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4a2fa2 {
  color: #4a2fa2;
}
Background
.bg-4a2fa2 {
  background-color: #4a2fa2;
  color: #ffffff;
}
Border
.border-4a2fa2 {
  border: 2px solid #4a2fa2;
}
CSS variables
:root {
  --color-primary: #4a2fa2;
  --color-primary-rgb: 74 47 162;
  --color-primary-hsl: 254 55% 41%;
}
Gradient
.gradient-4a2fa2 {
  background: linear-gradient(135deg, #4a2fa2, #842fa2);
}
Colored shadow
.shadow-4a2fa2 {
  box-shadow: 0 8px 24px rgb(74 47 162 / 0.35);
}

Ocean Blue
#4a2fa2  rgb(74, 47, 162)  hsl(254, 55%, 41%)  Ocean Blue
#87a22f  rgb(135, 162, 47)  hsl(74, 55%, 41%)  Apple Green
#a24a2f  rgb(162, 74, 47)  hsl(14, 55%, 41%)  Sienna
#2fa24a  rgb(47, 162, 74)  hsl(134, 55%, 41%)  Shamrock Green