#4E51B2

#4e51b2 ≈ Ocean Blue

  • blue
  • Lightness: medium
  • Saturation: moderate
  • Cool

#4e51b2 is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 30.59% red, 31.76% green and 69.8% blue; printed in CMYK it uses 56.18% cyan, 54.49% magenta, 0% yellow and 30.2% black. Its hue angle is 238.2°, with 39.37% saturation and 50.2% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and brand accents. White text on this color reaches a contrast ratio of 6.68:1 (WCAG AA). The closest named color is Ocean Blue (#4f42b5), ΔE 4.75.

Description generated from the measured properties of this color.

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

Readable text 6.68:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.14:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5c5c5c ≈ 0.003% of males
Achromatomaly #575887 ≈ 0.001% of males
Protanopia #1460b5 ≈ 1.01% of males
Deuteranopia #0058b0 ≈ 1.27% of males
Tritanopia #196779 ≈ 0.0001% of males
Protanomaly #345bb4 ≈ 1.08% of males
Deuteranomaly #2f55b1 ≈ 4.63% of males
Tritanomaly #365f93 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4e51b2 {
  color: #4e51b2;
}
Background
.bg-4e51b2 {
  background-color: #4e51b2;
  color: #ffffff;
}
Border
.border-4e51b2 {
  border: 2px solid #4e51b2;
}
CSS variables
:root {
  --color-primary: #4e51b2;
  --color-primary-rgb: 78 81 178;
  --color-primary-hsl: 238 39% 50%;
}
Gradient
.gradient-4e51b2 {
  background: linear-gradient(135deg, #4e51b2, #7d4eb2);
}
Colored shadow
.shadow-4e51b2 {
  box-shadow: 0 8px 24px rgb(78 81 178 / 0.35);
}

Ocean Blue
#4e51b2  rgb(78, 81, 178)  hsl(238, 39%, 50%)  Ocean Blue
#b2af4e  rgb(178, 175, 78)  hsl(58, 39%, 50%)  Brass
#b24e51  rgb(178, 78, 81)  hsl(358, 39%, 50%)  Redwood
#51b24e  rgb(81, 178, 78)  hsl(118, 39%, 50%)  Mantis