#0504E2

#0504e2 ≈ Medium Blue

  • blue
  • Lightness: medium
  • Saturation: vivid
  • Cool

#0504e2 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.96% red, 1.57% green and 88.63% blue; printed in CMYK it uses 97.79% cyan, 98.23% magenta, 0% yellow and 11.37% black. Its hue angle is 240.27°, with 96.52% saturation and 45.1% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 9.9:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.85.

Description generated from the measured properties of this color.

Conversions of #0504e2 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#0000cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0561

Readable text 9.9:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.12:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #434343 ≈ 0.003% of males
Achromatomaly #34349d ≈ 0.001% of males
Protanopia #004ee7 ≈ 1.01% of males
Deuteranopia #0036df ≈ 1.27% of males
Tritanopia #005f84 ≈ 0.0001% of males
Protanomaly #003de5 ≈ 1.08% of males
Deuteranomaly #002ae0 ≈ 4.63% of males
Tritanomaly #004ab2 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0504e2 {
  color: #0504e2;
}
Background
.bg-0504e2 {
  background-color: #0504e2;
  color: #ffffff;
}
Border
.border-0504e2 {
  border: 2px solid #0504e2;
}
CSS variables
:root {
  --color-primary: #0504e2;
  --color-primary-rgb: 5 4 226;
  --color-primary-hsl: 240 97% 45%;
}
Gradient
.gradient-0504e2 {
  background: linear-gradient(135deg, #0504e2, #7404e2);
}
Colored shadow
.shadow-0504e2 {
  box-shadow: 0 8px 24px rgb(5 4 226 / 0.35);
}

Medium Blue
#0504e2  rgb(5, 4, 226)  hsl(240, 97%, 45%)  Medium Blue
#e1e204  rgb(225, 226, 4)  hsl(60, 97%, 45%)  Titanium Yellow
#e20504  rgb(226, 5, 4)  hsl(0, 97%, 45%)  Rosso Corsa
#04e205  rgb(4, 226, 5)  hsl(120, 97%, 45%)  Lime Green