#0C0D4E

#0c0d4e ≈ Midnight Blue

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

#0c0d4e is a color from the blue family, with very low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 5.1% green and 30.59% blue; printed in CMYK it uses 84.62% cyan, 83.33% magenta, 0% yellow and 69.41% black. Its hue angle is 239.09°, with 73.33% saturation and 17.65% 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 17.75:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.03.

Description generated from the measured properties of this color.

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

Readable text 17.75:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.18:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #181818 ≈ 0.003% of males
Achromatomaly #141435 ≈ 0.001% of males
Protanopia #001b50 ≈ 1.01% of males
Deuteranopia #00154d ≈ 1.27% of males
Tritanopia #00202d ≈ 0.0001% of males
Protanomaly #00174f ≈ 1.08% of males
Deuteranomaly #00124d ≈ 4.63% of males
Tritanomaly #001a3d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0c0d4e {
  color: #0c0d4e;
}
Background
.bg-0c0d4e {
  background-color: #0c0d4e;
  color: #ffffff;
}
Border
.border-0c0d4e {
  border: 2px solid #0c0d4e;
}
CSS variables
:root {
  --color-primary: #0c0d4e;
  --color-primary-rgb: 12 13 78;
  --color-primary-hsl: 239 73% 18%;
}
Gradient
.gradient-0c0d4e {
  background: linear-gradient(135deg, #0c0d4e, #2c0c4e);
}
Colored shadow
.shadow-0c0d4e {
  box-shadow: 0 8px 24px rgb(12 13 78 / 0.35);
}

Midnight Blue
#0c0d4e  rgb(12, 13, 78)  hsl(239, 73%, 18%)  Midnight Blue
#4e4d0c  rgb(78, 77, 12)  hsl(59, 73%, 18%)  Army Green
#4e0c0d  rgb(78, 12, 13)  hsl(359, 73%, 18%)  Rosewood
#0d4e0c  rgb(13, 78, 12)  hsl(119, 73%, 18%)  Lincoln Green