#0C217D

#0c217d ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#0c217d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 12.94% green and 49.02% blue; printed in CMYK it uses 90.4% cyan, 73.6% magenta, 0% yellow and 50.98% black. Its hue angle is 228.85°, with 82.48% saturation and 26.86% 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 luxury branding. White text on this color reaches a contrast ratio of 13.73:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.09.

Description generated from the measured properties of this color.

Conversions of #0c217d into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#003366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0265

Readable text 13.73:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.53:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2d2d2d ≈ 0.003% of males
Achromatomaly #242958 ≈ 0.001% of males
Protanopia #003380 ≈ 1.01% of males
Deuteranopia #00287b ≈ 1.27% of males
Tritanopia #003b4c ≈ 0.0001% of males
Protanomaly #002d7f ≈ 1.08% of males
Deuteranomaly #00257c ≈ 4.63% of males
Tritanomaly #003363 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0c217d {
  color: #0c217d;
}
Background
.bg-0c217d {
  background-color: #0c217d;
  color: #ffffff;
}
Border
.border-0c217d {
  border: 2px solid #0c217d;
}
CSS variables
:root {
  --color-primary: #0c217d;
  --color-primary-rgb: 12 33 125;
  --color-primary-hsl: 229 82% 27%;
}
Gradient
.gradient-0c217d {
  background: linear-gradient(135deg, #0c217d, #2f0c7d);
}
Colored shadow
.shadow-0c217d {
  box-shadow: 0 8px 24px rgb(12 33 125 / 0.35);
}

Midnight Blue
#0c217d  rgb(12, 33, 125)  hsl(229, 82%, 27%)  Midnight Blue
#7d680c  rgb(125, 104, 12)  hsl(49, 82%, 27%)  Field Drab
#7d0c21  rgb(125, 12, 33)  hsl(349, 82%, 27%)  Burgundy
#217d0c  rgb(33, 125, 12)  hsl(109, 82%, 27%)  Green