#1C1F7C

#1c1f7c ≈ Midnight Blue

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

#1c1f7c is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 10.98% red, 12.16% green and 48.63% blue; printed in CMYK it uses 77.42% cyan, 75% magenta, 0% yellow and 51.37% black. Its hue angle is 238.13°, with 63.16% saturation and 29.8% 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.67:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 2.23.

Description generated from the measured properties of this color.

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

Readable text 13.67:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.54:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2e2e2e ≈ 0.003% of males
Achromatomaly #272858 ≈ 0.001% of males
Protanopia #00327f ≈ 1.01% of males
Deuteranopia #00297a ≈ 1.27% of males
Tritanopia #00394b ≈ 0.0001% of males
Protanomaly #002c7e ≈ 1.08% of males
Deuteranomaly #00257b ≈ 4.63% of males
Tritanomaly #003162 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-1c1f7c {
  color: #1c1f7c;
}
Background
.bg-1c1f7c {
  background-color: #1c1f7c;
  color: #ffffff;
}
Border
.border-1c1f7c {
  border: 2px solid #1c1f7c;
}
CSS variables
:root {
  --color-primary: #1c1f7c;
  --color-primary-rgb: 28 31 124;
  --color-primary-hsl: 238 63% 30%;
}
Gradient
.gradient-1c1f7c {
  background: linear-gradient(135deg, #1c1f7c, #491c7c);
}
Colored shadow
.shadow-1c1f7c {
  box-shadow: 0 8px 24px rgb(28 31 124 / 0.35);
}

Midnight Blue
#1c1f7c  rgb(28, 31, 124)  hsl(238, 63%, 30%)  Midnight Blue
#7c791c  rgb(124, 121, 28)  hsl(58, 63%, 30%)  Olive
#7c1c1f  rgb(124, 28, 31)  hsl(358, 63%, 30%)  Falu Red
#1f7c1c  rgb(31, 124, 28)  hsl(118, 63%, 30%)  Green