#312E8A

#312e8a ≈ Imperial Blue

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

#312e8a is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 19.22% red, 18.04% green and 54.12% blue; printed in CMYK it uses 64.49% cyan, 66.67% magenta, 0% yellow and 45.88% black. Its hue angle is 241.96°, with 50% saturation and 36.08% 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 brand accents. White text on this color reaches a contrast ratio of 11.12:1 (WCAG AAA). The closest named color is Imperial Blue (#002395), ΔE 4.6.

Description generated from the measured properties of this color.

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

Readable text 11.12:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.89:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3b3b3b ≈ 0.003% of males
Achromatomaly #383764 ≈ 0.001% of males
Protanopia #003f8d ≈ 1.01% of males
Deuteranopia #003888 ≈ 1.27% of males
Tritanopia #004657 ≈ 0.0001% of males
Protanomaly #04398c ≈ 1.08% of males
Deuteranomaly #003489 ≈ 4.63% of males
Tritanomaly #143d6f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-312e8a {
  color: #312e8a;
}
Background
.bg-312e8a {
  background-color: #312e8a;
  color: #ffffff;
}
Border
.border-312e8a {
  border: 2px solid #312e8a;
}
CSS variables
:root {
  --color-primary: #312e8a;
  --color-primary-rgb: 49 46 138;
  --color-primary-hsl: 242 50% 36%;
}
Gradient
.gradient-312e8a {
  background: linear-gradient(135deg, #312e8a, #5f2e8a);
}
Colored shadow
.shadow-312e8a {
  box-shadow: 0 8px 24px rgb(49 46 138 / 0.35);
}

Imperial Blue
#312e8a  rgb(49, 46, 138)  hsl(242, 50%, 36%)  Imperial Blue
#878a2e  rgb(135, 138, 46)  hsl(62, 50%, 36%)  Olive
#8a312e  rgb(138, 49, 46)  hsl(2, 50%, 36%)  Burnt Umber
#2e8a31  rgb(46, 138, 49)  hsl(122, 50%, 36%)  Forest Green