HSL(171, 58%, 20%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(171,58%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(171, 58%, 20%) | color: hsl(171, 58%, 20%) | |
| HEX | #155148 | color: #155148 | |
| RGB | rgb(21, 81, 72) | color: rgb(21, 81, 72) | |
| CMYK | cmyk(74%, 0%, 11%, 68%) | — | |
| HSV | hsv(171, 74%, 32%) | — | |
| HWB | hwb(171 8% 68%) | color: hwb(171 8% 68%) | |
| OKLCH | oklch(0.3946 0.062 180.92) | color: oklch(0.3946 0.062 180.92) | |
| Lab | lab(30.67 -21.34 -0.24) | color: lab(30.67 -21.34 -0.24) | |
| LCH | lch(30.67 21.34 180.64) | color: lch(30.67 21.34 180.64) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#2F304A — rgb(47, 48, 74)
Deuteranopia (Green-blind)
#2C274B — rgb(44, 39, 75)
Tritanopia (Blue-blind)
#184C4C — rgb(24, 76, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(171, 58%, 20%);
text
color: hsl(171, 58%, 20%);
border
border: 2px solid hsl(171, 58%, 20%);
gradient light
background: linear-gradient(to right, hsl(171, 58%, 40%), hsl(171, 58%, 20%));
gradient dark
background: linear-gradient(to right, hsl(171, 58%, 20%), hsl(171, 58%, 0%))
hex
background-color: #155148;
tailwind
bg-[hsl(171,58%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(171, 58%, 20%, 0.4);
css variable
--color-primary: hsl(171, 58%, 20%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(171, 58%, 20%)?
HEX: #155148 | RGB: rgb(21, 81, 72) | CMYK: 74%, 0%, 11%, 68% | HSV: 171°, 74%, 32%. Copy any format from the conversion table above.
What colors go well with #155148?
The complementary color is HSL(351, 58%, 20%). For a triadic harmony, use hues 171°, 291°, and 51°. For analogous combinations, try hues 141° and 201°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(171, 58%, 20%) in CSS?
As HSL: color: hsl(171, 58%, 20%); — As HEX: color: #155148; — As RGB: color: rgb(21, 81, 72); — Tailwind CSS: bg-[hsl(171,58%,20%)] — CSS variable: --color-primary: hsl(171, 58%, 20%);