#1F286A

#1f286a ≈ Midnight Blue

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

#1f286a 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 41.57% blue; printed in CMYK it uses 70.75% cyan, 62.26% magenta, 0% yellow and 58.43% black. Its hue angle is 232.8°, with 54.74% saturation and 26.86% 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.38:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.14.

Description generated from the measured properties of this color.

Conversions of #1f286a 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.0285

Readable text 13.38:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.57:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #292c4d ≈ 0.001% of males
Protanopia #00336c ≈ 1.01% of males
Deuteranopia #002c69 ≈ 1.27% of males
Tritanopia #003844 ≈ 0.0001% of males
Protanomaly #082f6b ≈ 1.08% of males
Deuteranomaly #002a69 ≈ 4.63% of males
Tritanomaly #003256 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-1f286a {
  color: #1f286a;
}
Background
.bg-1f286a {
  background-color: #1f286a;
  color: #ffffff;
}
Border
.border-1f286a {
  border: 2px solid #1f286a;
}
CSS variables
:root {
  --color-primary: #1f286a;
  --color-primary-rgb: 31 40 106;
  --color-primary-hsl: 233 55% 27%;
}
Gradient
.gradient-1f286a {
  background: linear-gradient(135deg, #1f286a, #3b1f6a);
}
Colored shadow
.shadow-1f286a {
  box-shadow: 0 8px 24px rgb(31 40 106 / 0.35);
}

Midnight Blue
#1f286a  rgb(31, 40, 106)  hsl(233, 55%, 27%)  Midnight Blue
#6a611f  rgb(106, 97, 31)  hsl(53, 55%, 27%)  Field Drab
#6a1f28  rgb(106, 31, 40)  hsl(353, 55%, 27%)  Wine
#286a1f  rgb(40, 106, 31)  hsl(113, 55%, 27%)  Pakistan Green