#031F68

#031f68 ≈ Midnight Blue

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

#031f68 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 1.18% red, 12.16% green and 40.78% blue; printed in CMYK it uses 97.12% cyan, 70.19% magenta, 0% yellow and 59.22% black. Its hue angle is 223.37°, with 94.39% saturation and 20.98% 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:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.82.

Description generated from the measured properties of this color.

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

Readable text 15:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.4:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #1d2449 ≈ 0.001% of males
Protanopia #002b6a ≈ 1.01% of males
Deuteranopia #002267 ≈ 1.27% of males
Tritanopia #003340 ≈ 0.0001% of males
Protanomaly #002769 ≈ 1.08% of males
Deuteranomaly #002167 ≈ 4.63% of males
Tritanomaly #002c53 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-031f68 {
  color: #031f68;
}
Background
.bg-031f68 {
  background-color: #031f68;
  color: #ffffff;
}
Border
.border-031f68 {
  border: 2px solid #031f68;
}
CSS variables
:root {
  --color-primary: #031f68;
  --color-primary-rgb: 3 31 104;
  --color-primary-hsl: 223 94% 21%;
}
Gradient
.gradient-031f68 {
  background: linear-gradient(135deg, #031f68, #1a0368);
}
Colored shadow
.shadow-031f68 {
  box-shadow: 0 8px 24px rgb(3 31 104 / 0.35);
}

Midnight Blue
#031f68  rgb(3, 31, 104)  hsl(223, 94%, 21%)  Midnight Blue
#684c03  rgb(104, 76, 3)  hsl(43, 94%, 21%)  Field Drab
#68031f  rgb(104, 3, 31)  hsl(343, 94%, 21%)  Burgundy
#1f6803  rgb(31, 104, 3)  hsl(103, 94%, 21%)  Pakistan Green