#4E2FA6

#4e2fa6 ≈ Ocean Blue

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

#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.

Conversions of #4e2fa6 into other color spaces
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 luminance0.0641

Readable text 9.21:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.28:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #484848 ≈ 0.003% of males
Achromatomaly #4a3f79 ≈ 0.001% of males
Protanopia #004aaa ≈ 1.01% of males
Deuteranopia #0044a4 ≈ 1.27% of males
Tritanopia #2c4e67 ≈ 0.0001% of males
Protanomaly #1741a8 ≈ 1.08% of males
Deuteranomaly #193da5 ≈ 4.63% of males
Tritanomaly #3c4485 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4e2fa6 {
  color: #4e2fa6;
}
Background
.bg-4e2fa6 {
  background-color: #4e2fa6;
  color: #ffffff;
}
Border
.border-4e2fa6 {
  border: 2px solid #4e2fa6;
}
CSS variables
:root {
  --color-primary: #4e2fa6;
  --color-primary-rgb: 78 47 166;
  --color-primary-hsl: 256 56% 42%;
}
Gradient
.gradient-4e2fa6 {
  background: linear-gradient(135deg, #4e2fa6, #892fa6);
}
Colored shadow
.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