#310CD9

#310cd9 ≈ Medium Blue

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

#310cd9 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 19.22% red, 4.71% green and 85.1% blue; printed in CMYK it uses 77.42% cyan, 94.47% magenta, 0% yellow and 14.9% black. Its hue angle is 250.83°, with 89.52% saturation and 44.9% 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.61:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 3.24.

Description generated from the measured properties of this color.

Conversions of #310cd9 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.0593

Readable text 9.61:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.19:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #454545 ≈ 0.003% of males
Achromatomaly #3e3698 ≈ 0.001% of males
Protanopia #004ede ≈ 1.01% of males
Deuteranopia #003bd6 ≈ 1.27% of males
Tritanopia #005b7f ≈ 0.0001% of males
Protanomaly #003ddc ≈ 1.08% of males
Deuteranomaly #002ed7 ≈ 4.63% of males
Tritanomaly #0047ab ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-310cd9 {
  color: #310cd9;
}
Background
.bg-310cd9 {
  background-color: #310cd9;
  color: #ffffff;
}
Border
.border-310cd9 {
  border: 2px solid #310cd9;
}
CSS variables
:root {
  --color-primary: #310cd9;
  --color-primary-rgb: 49 12 217;
  --color-primary-hsl: 251 90% 45%;
}
Gradient
.gradient-310cd9 {
  background: linear-gradient(135deg, #310cd9, #970cd9);
}
Colored shadow
.shadow-310cd9 {
  box-shadow: 0 8px 24px rgb(49 12 217 / 0.35);
}

Medium Blue
#310cd9  rgb(49, 12, 217)  hsl(251, 90%, 45%)  Medium Blue
#b4d90c  rgb(180, 217, 12)  hsl(71, 90%, 45%)  Pear
#d9310c  rgb(217, 49, 12)  hsl(11, 90%, 45%)  Sinopia
#0cd931  rgb(12, 217, 49)  hsl(131, 90%, 45%)  Lime Green