#400DCD

#400dcd ≈ Medium Blue

  • violet
  • Lightness: medium
  • Saturation: vivid
  • Cool

#400dcd is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 25.1% red, 5.1% green and 80.39% blue; printed in CMYK it uses 68.78% cyan, 93.66% magenta, 0% yellow and 19.61% black. Its hue angle is 255.94°, with 88.07% saturation and 42.75% 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 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.51.

Description generated from the measured properties of this color.

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

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 #423690 ≈ 0.001% of males
Protanopia #004bd2 ≈ 1.01% of males
Deuteranopia #003dca ≈ 1.27% of males
Tritanopia #005578 ≈ 0.0001% of males
Protanomaly #003bd0 ≈ 1.08% of males
Deuteranomaly #0030cb ≈ 4.63% of males
Tritanomaly #0043a1 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-400dcd {
  color: #400dcd;
}
Background
.bg-400dcd {
  background-color: #400dcd;
  color: #ffffff;
}
Border
.border-400dcd {
  border: 2px solid #400dcd;
}
CSS variables
:root {
  --color-primary: #400dcd;
  --color-primary-rgb: 64 13 205;
  --color-primary-hsl: 256 88% 43%;
}
Gradient
.gradient-400dcd {
  background: linear-gradient(135deg, #400dcd, #a00dcd);
}
Colored shadow
.shadow-400dcd {
  box-shadow: 0 8px 24px rgb(64 13 205 / 0.35);
}

Medium Blue
#400dcd  rgb(64, 13, 205)  hsl(256, 88%, 43%)  Medium Blue
#9acd0d  rgb(154, 205, 13)  hsl(76, 88%, 43%)  Yellow Green
#cd400d  rgb(205, 64, 13)  hsl(16, 88%, 43%)  Sinopia
#0dcd40  rgb(13, 205, 64)  hsl(136, 88%, 43%)  Lime Green