#1F287C

#1f287c ≈ Midnight Blue

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

#1f287c is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 12.16% red, 15.69% green and 48.63% blue; printed in CMYK it uses 75% cyan, 67.74% magenta, 0% yellow and 51.37% black. Its hue angle is 234.19°, with 60% saturation and 30.39% 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 corporate identities. White text on this color reaches a contrast ratio of 12.71:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.26.

Description generated from the measured properties of this color.

Conversions of #1f287c 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.0326

Readable text 12.71:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.65:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #333333 ≈ 0.003% of males
Achromatomaly #2c2f59 ≈ 0.001% of males
Protanopia #00377f ≈ 1.01% of males
Deuteranopia #002e7a ≈ 1.27% of males
Tritanopia #003e4e ≈ 0.0001% of males
Protanomaly #00327e ≈ 1.08% of males
Deuteranomaly #002c7b ≈ 4.63% of males
Tritanomaly #003664 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-1f287c {
  color: #1f287c;
}
Background
.bg-1f287c {
  background-color: #1f287c;
  color: #ffffff;
}
Border
.border-1f287c {
  border: 2px solid #1f287c;
}
CSS variables
:root {
  --color-primary: #1f287c;
  --color-primary-rgb: 31 40 124;
  --color-primary-hsl: 234 60% 30%;
}
Gradient
.gradient-1f287c {
  background: linear-gradient(135deg, #1f287c, #441f7c);
}
Colored shadow
.shadow-1f287c {
  box-shadow: 0 8px 24px rgb(31 40 124 / 0.35);
}

Midnight Blue
#1f287c  rgb(31, 40, 124)  hsl(234, 60%, 30%)  Midnight Blue
#7c731f  rgb(124, 115, 31)  hsl(54, 60%, 30%)  Olive
#7c1f28  rgb(124, 31, 40)  hsl(354, 60%, 30%)  Burgundy
#287c1f  rgb(40, 124, 31)  hsl(114, 60%, 30%)  Green