#045F6C

#045f6c ≈ Midnight Green

  • cyan
  • Lightness: low
  • Saturation: moderate
  • Cool

#045f6c is a color from the cyan family, with low lightness and moderate saturation. In the RGB model it is made of 1.57% red, 37.25% green and 42.35% blue; printed in CMYK it uses 96.3% cyan, 12.04% magenta, 0% yellow and 57.65% black. Its hue angle is 187.5°, with 92.86% saturation and 21.96% lightness in HSL. It is a cool color, often associated with freshness, technology and clarity. Designers typically use it for health and wellness, technology products and luxury branding. White text on this color reaches a contrast ratio of 7.35:1 (WCAG AAA). The closest named color is Midnight Green (#004953), ΔE 7.2.

Description generated from the measured properties of this color.

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

Readable text 7.35:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.86:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #565656 ≈ 0.003% of males
Achromatomaly #435a60 ≈ 0.001% of males
Protanopia #555b6d ≈ 1.01% of males
Deuteranopia #48526c ≈ 1.27% of males
Tritanopia #006463 ≈ 0.0001% of males
Protanomaly #425d6c ≈ 1.08% of males
Deuteranomaly #38576c ≈ 4.63% of males
Tritanomaly #006267 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-045f6c {
  color: #045f6c;
}
Background
.bg-045f6c {
  background-color: #045f6c;
  color: #ffffff;
}
Border
.border-045f6c {
  border: 2px solid #045f6c;
}
CSS variables
:root {
  --color-primary: #045f6c;
  --color-primary-rgb: 4 95 108;
  --color-primary-hsl: 188 93% 22%;
}
Gradient
.gradient-045f6c {
  background: linear-gradient(135deg, #045f6c, #042b6c);
}
Colored shadow
.shadow-045f6c {
  box-shadow: 0 8px 24px rgb(4 95 108 / 0.35);
}

Midnight Green
#045f6c  rgb(4, 95, 108)  hsl(188, 93%, 22%)  Midnight Green
#6c1104  rgb(108, 17, 4)  hsl(8, 93%, 22%)  Maroon
#6c045f  rgb(108, 4, 95)  hsl(308, 93%, 22%)  Byzantium
#5f6c04  rgb(95, 108, 4)  hsl(68, 93%, 22%)  Dark Olive Green