#0C1962

#0c1962 ≈ Midnight Blue

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

#0c1962 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 4.71% red, 9.8% green and 38.43% blue; printed in CMYK it uses 87.76% cyan, 74.49% magenta, 0% yellow and 61.57% black. Its hue angle is 230.93°, with 78.18% saturation and 21.57% 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 15.78:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.9.

Description generated from the measured properties of this color.

Conversions of #0c1962 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.0166

Readable text 15.78:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.33:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #232323 ≈ 0.003% of males
Achromatomaly #1c1f45 ≈ 0.001% of males
Protanopia #002764 ≈ 1.01% of males
Deuteranopia #001f61 ≈ 1.27% of males
Tritanopia #002e3b ≈ 0.0001% of males
Protanomaly #002263 ≈ 1.08% of males
Deuteranomaly #001c61 ≈ 4.63% of males
Tritanomaly #00274d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0c1962 {
  color: #0c1962;
}
Background
.bg-0c1962 {
  background-color: #0c1962;
  color: #ffffff;
}
Border
.border-0c1962 {
  border: 2px solid #0c1962;
}
CSS variables
:root {
  --color-primary: #0c1962;
  --color-primary-rgb: 12 25 98;
  --color-primary-hsl: 231 78% 22%;
}
Gradient
.gradient-0c1962 {
  background: linear-gradient(135deg, #0c1962, #2a0c62);
}
Colored shadow
.shadow-0c1962 {
  box-shadow: 0 8px 24px rgb(12 25 98 / 0.35);
}

Midnight Blue
#0c1962  rgb(12, 25, 98)  hsl(231, 78%, 22%)  Midnight Blue
#62550c  rgb(98, 85, 12)  hsl(51, 78%, 22%)  Field Drab
#620c19  rgb(98, 12, 25)  hsl(351, 78%, 22%)  Rosewood
#19620c  rgb(25, 98, 12)  hsl(111, 78%, 22%)  Dark Green