#040CC4

#040cc4 ≈ Medium Blue

  • blue
  • Lightness: low
  • Saturation: vivid
  • Cool

#040cc4 is a color from the blue family, with low lightness and vivid saturation. In the RGB model it is made of 1.57% red, 4.71% green and 76.86% blue; printed in CMYK it uses 97.96% cyan, 93.88% magenta, 0% yellow and 23.14% black. Its hue angle is 237.5°, with 96% saturation and 39.22% 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 11.32:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 1.17.

Description generated from the measured properties of this color.

Conversions of #040cc4 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.0427

Readable text 11.32:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.85:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3a3a3a ≈ 0.003% of males
Achromatomaly #2d2e88 ≈ 0.001% of males
Protanopia #0044c8 ≈ 1.01% of males
Deuteranopia #002fc1 ≈ 1.27% of males
Tritanopia #005273 ≈ 0.0001% of males
Protanomaly #0035c7 ≈ 1.08% of males
Deuteranomaly #0025c2 ≈ 4.63% of males
Tritanomaly #00419a ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-040cc4 {
  color: #040cc4;
}
Background
.bg-040cc4 {
  background-color: #040cc4;
  color: #ffffff;
}
Border
.border-040cc4 {
  border: 2px solid #040cc4;
}
CSS variables
:root {
  --color-primary: #040cc4;
  --color-primary-rgb: 4 12 196;
  --color-primary-hsl: 238 96% 39%;
}
Gradient
.gradient-040cc4 {
  background: linear-gradient(135deg, #040cc4, #5c04c4);
}
Colored shadow
.shadow-040cc4 {
  box-shadow: 0 8px 24px rgb(4 12 196 / 0.35);
}

Medium Blue
#040cc4  rgb(4, 12, 196)  hsl(238, 96%, 39%)  Medium Blue
#c4bc04  rgb(196, 188, 4)  hsl(58, 96%, 39%)  Old Gold
#c4040c  rgb(196, 4, 12)  hsl(358, 96%, 39%)  Venetian Red
#0cc404  rgb(12, 196, 4)  hsl(118, 96%, 39%)  Lime Green