#0C054A

#0c054a ≈ Midnight Blue

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

#0c054a 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, 1.96% green and 29.02% blue; printed in CMYK it uses 83.78% cyan, 93.24% magenta, 0% yellow and 70.98% black. Its hue angle is 246.09°, with 87.34% saturation and 15.49% 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 18.48:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 7.16.

Description generated from the measured properties of this color.

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

Readable text 18.48:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.14:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #141414 ≈ 0.003% of males
Achromatomaly #110f32 ≈ 0.001% of males
Protanopia #00174c ≈ 1.01% of males
Deuteranopia #001049 ≈ 1.27% of males
Tritanopia #001b29 ≈ 0.0001% of males
Protanomaly #00114b ≈ 1.08% of males
Deuteranomaly #000c49 ≈ 4.63% of males
Tritanomaly #001539 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0c054a {
  color: #0c054a;
}
Background
.bg-0c054a {
  background-color: #0c054a;
  color: #ffffff;
}
Border
.border-0c054a {
  border: 2px solid #0c054a;
}
CSS variables
:root {
  --color-primary: #0c054a;
  --color-primary-rgb: 12 5 74;
  --color-primary-hsl: 246 87% 15%;
}
Gradient
.gradient-0c054a {
  background: linear-gradient(135deg, #0c054a, #2f054a);
}
Colored shadow
.shadow-0c054a {
  box-shadow: 0 8px 24px rgb(12 5 74 / 0.35);
}

Midnight Blue
#0c054a  rgb(12, 5, 74)  hsl(246, 87%, 15%)  Midnight Blue
#434a05  rgb(67, 74, 5)  hsl(66, 87%, 15%)  Army Green
#4a0c05  rgb(74, 12, 5)  hsl(6, 87%, 15%)  Rosewood
#054a0c  rgb(5, 74, 12)  hsl(126, 87%, 15%)  Lincoln Green