#2A256C

#2a256c ≈ Midnight Blue

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

#2a256c is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 14.51% green and 42.35% blue; printed in CMYK it uses 61.11% cyan, 65.74% magenta, 0% yellow and 57.65% black. Its hue angle is 244.23°, with 48.97% saturation and 28.43% 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.29:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 4.02.

Description generated from the measured properties of this color.

Conversions of #2a256c 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.029

Readable text 13.29:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.58:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #2d2c4f ≈ 0.001% of males
Protanopia #00326e ≈ 1.01% of males
Deuteranopia #002d6b ≈ 1.27% of males
Tritanopia #033644 ≈ 0.0001% of males
Protanomaly #0f2d6d ≈ 1.08% of males
Deuteranomaly #0b2a6b ≈ 4.63% of males
Tritanomaly #193057 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a256c {
  color: #2a256c;
}
Background
.bg-2a256c {
  background-color: #2a256c;
  color: #ffffff;
}
Border
.border-2a256c {
  border: 2px solid #2a256c;
}
CSS variables
:root {
  --color-primary: #2a256c;
  --color-primary-rgb: 42 37 108;
  --color-primary-hsl: 244 49% 28%;
}
Gradient
.gradient-2a256c {
  background: linear-gradient(135deg, #2a256c, #4e256c);
}
Colored shadow
.shadow-2a256c {
  box-shadow: 0 8px 24px rgb(42 37 108 / 0.35);
}

Midnight Blue
#2a256c  rgb(42, 37, 108)  hsl(244, 49%, 28%)  Midnight Blue
#676c25  rgb(103, 108, 37)  hsl(64, 49%, 28%)  Dark Olive Green
#6c2a25  rgb(108, 42, 37)  hsl(4, 49%, 28%)  Caput Mortuum
#256c2a  rgb(37, 108, 42)  hsl(124, 49%, 28%)  Pakistan Green