HSL(172, 55%, 18%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(172,55%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(172, 55%, 18%) | color: hsl(172, 55%, 18%) | |
| HEX | #154740 | color: #154740 | |
| RGB | rgb(21, 71, 64) | color: rgb(21, 71, 64) | |
| CMYK | cmyk(70%, 0%, 10%, 72%) | — | |
| HSV | hsv(172, 70%, 28%) | — | |
| HWB | hwb(172 8% 72%) | color: hwb(172 8% 72%) | |
| OKLCH | oklch(0.3625 0.0541 182.28) | color: oklch(0.3625 0.0541 182.28) | |
| Lab | lab(26.84 -18.49 -0.69) | color: lab(26.84 -18.49 -0.69) | |
| LCH | lch(26.84 18.5 182.14) | color: lch(26.84 18.5 182.14) |
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)
#2B2B42 — rgb(43, 43, 66)
Deuteranopia (Green-blind)
#282442 — rgb(40, 36, 66)
Tritanopia (Blue-blind)
#184343 — rgb(24, 67, 67)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(172, 55%, 18%);
text
color: hsl(172, 55%, 18%);
border
border: 2px solid hsl(172, 55%, 18%);
gradient light
background: linear-gradient(to right, hsl(172, 55%, 38%), hsl(172, 55%, 18%));
gradient dark
background: linear-gradient(to right, hsl(172, 55%, 18%), hsl(172, 55%, 0%))
hex
background-color: #154740;
tailwind
bg-[hsl(172,55%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(172, 55%, 18%, 0.4);
css variable
--color-primary: hsl(172, 55%, 18%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(172, 55%, 18%)?
HEX: #154740 | RGB: rgb(21, 71, 64) | CMYK: 70%, 0%, 10%, 72% | HSV: 172°, 70%, 28%. Copy any format from the conversion table above.
What colors go well with #154740?
The complementary color is HSL(352, 55%, 18%). For a triadic harmony, use hues 172°, 292°, and 52°. For analogous combinations, try hues 142° and 202°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(172, 55%, 18%) in CSS?
As HSL: color: hsl(172, 55%, 18%); — As HEX: color: #154740; — As RGB: color: rgb(21, 71, 64); — Tailwind CSS: bg-[hsl(172,55%,18%)] — CSS variable: --color-primary: hsl(172, 55%, 18%);