#312A68

#312a68 ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: muted
  • Cool

#312a68 is a color from the blue family, with low lightness and muted saturation. In the RGB model it is made of 19.22% red, 16.47% green and 40.78% blue; printed in CMYK it uses 52.88% cyan, 59.62% magenta, 0% yellow and 59.22% black. Its hue angle is 246.77°, with 42.47% saturation and 28.63% 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 12.64:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.29.

Description generated from the measured properties of this color.

Conversions of #312a68 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.0331

Readable text 12.64:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.66:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #333333 ≈ 0.003% of males
Achromatomaly #32304e ≈ 0.001% of males
Protanopia #02356a ≈ 1.01% of males
Deuteranopia #003167 ≈ 1.27% of males
Tritanopia #1d3844 ≈ 0.0001% of males
Protanomaly #1e3169 ≈ 1.08% of males
Deuteranomaly #1d2e67 ≈ 4.63% of males
Tritanomaly #263355 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-312a68 {
  color: #312a68;
}
Background
.bg-312a68 {
  background-color: #312a68;
  color: #ffffff;
}
Border
.border-312a68 {
  border: 2px solid #312a68;
}
CSS variables
:root {
  --color-primary: #312a68;
  --color-primary-rgb: 49 42 104;
  --color-primary-hsl: 247 42% 29%;
}
Gradient
.gradient-312a68 {
  background: linear-gradient(135deg, #312a68, #502a68);
}
Colored shadow
.shadow-312a68 {
  box-shadow: 0 8px 24px rgb(49 42 104 / 0.35);
}

Midnight Blue
#312a68  rgb(49, 42, 104)  hsl(247, 42%, 29%)  Midnight Blue
#61682a  rgb(97, 104, 42)  hsl(67, 42%, 29%)  Dark Olive Green
#68312a  rgb(104, 49, 42)  hsl(7, 42%, 29%)  Caput Mortuum
#2a6831  rgb(42, 104, 49)  hsl(127, 42%, 29%)  Cadmium Green