#040CE2

#040ce2 ≈ Medium Blue

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

#040ce2 is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.57% red, 4.71% green and 88.63% blue; printed in CMYK it uses 98.23% cyan, 94.69% magenta, 0% yellow and 11.37% black. Its hue angle is 237.84°, 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.74:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 3.13.

Description generated from the measured properties of this color.

Conversions of #040ce2 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.0578

Readable text 9.74:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.16:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #444444 ≈ 0.003% of males
Achromatomaly #35359d ≈ 0.001% of males
Protanopia #004fe7 ≈ 1.01% of males
Deuteranopia #0037df ≈ 1.27% of males
Tritanopia #005f85 ≈ 0.0001% of males
Protanomaly #003ee5 ≈ 1.08% of males
Deuteranomaly #002ce0 ≈ 4.63% of males
Tritanomaly #004bb2 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#040ce2  rgb(4, 12, 226)  hsl(238, 97%, 45%)  Medium Blue
#e2da04  rgb(226, 218, 4)  hsl(58, 97%, 45%)  Dandelion
#e2040c  rgb(226, 4, 12)  hsl(358, 97%, 45%)  Lust
#0ce204  rgb(12, 226, 4)  hsl(118, 97%, 45%)  Lime Green