#2A237B

#2a237b ≈ Midnight Blue

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

#2a237b is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 13.73% green and 48.24% blue; printed in CMYK it uses 65.85% cyan, 71.54% magenta, 0% yellow and 51.76% black. Its hue angle is 244.77°, with 55.7% saturation and 30.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 corporate identities. White text on this color reaches a contrast ratio of 12.92:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.19.

Description generated from the measured properties of this color.

Conversions of #2a237b 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.0312

Readable text 12.92:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.62:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #313131 ≈ 0.003% of males
Achromatomaly #2f2c58 ≈ 0.001% of males
Protanopia #00357e ≈ 1.01% of males
Deuteranopia #002e79 ≈ 1.27% of males
Tritanopia #003b4c ≈ 0.0001% of males
Protanomaly #002f7d ≈ 1.08% of males
Deuteranomaly #002a7a ≈ 4.63% of males
Tritanomaly #0f3362 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a237b {
  color: #2a237b;
}
Background
.bg-2a237b {
  background-color: #2a237b;
  color: #ffffff;
}
Border
.border-2a237b {
  border: 2px solid #2a237b;
}
CSS variables
:root {
  --color-primary: #2a237b;
  --color-primary-rgb: 42 35 123;
  --color-primary-hsl: 245 56% 31%;
}
Gradient
.gradient-2a237b {
  background: linear-gradient(135deg, #2a237b, #56237b);
}
Colored shadow
.shadow-2a237b {
  box-shadow: 0 8px 24px rgb(42 35 123 / 0.35);
}

Midnight Blue
#2a237b  rgb(42, 35, 123)  hsl(245, 56%, 31%)  Midnight Blue
#747b23  rgb(116, 123, 35)  hsl(65, 56%, 31%)  Olive
#7b2a23  rgb(123, 42, 35)  hsl(5, 56%, 31%)  Falu Red
#237b2a  rgb(35, 123, 42)  hsl(125, 56%, 31%)  Green