HSL(172, 16%, 20%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(172,16%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(172, 16%, 20%) | color: hsl(172, 16%, 20%) | |
| HEX | #2B3B39 | color: #2B3B39 | |
| RGB | rgb(43, 59, 57) | color: rgb(43, 59, 57) | |
| CMYK | cmyk(27%, 0%, 3%, 77%) | — | |
| HSV | hsv(173, 27%, 23%) | — | |
| HWB | hwb(173 17% 77%) | color: hwb(173 17% 77%) | |
| OKLCH | oklch(0.3376 0.0211 186.74) | color: oklch(0.3376 0.0211 186.74) | |
| Lab | lab(23.46 -7 -0.89) | color: lab(23.46 -7 -0.89) | |
| LCH | lch(23.46 7.06 187.25) | color: lch(23.46 7.06 187.25) |
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)
#323239 — rgb(50, 50, 57)
Deuteranopia (Green-blind)
#31303A — rgb(49, 48, 58)
Tritanopia (Blue-blind)
#2C3A3A — rgb(44, 58, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(172, 16%, 20%);
text
color: hsl(172, 16%, 20%);
border
border: 2px solid hsl(172, 16%, 20%);
gradient light
background: linear-gradient(to right, hsl(172, 16%, 40%), hsl(172, 16%, 20%));
gradient dark
background: linear-gradient(to right, hsl(172, 16%, 20%), hsl(172, 16%, 0%))
hex
background-color: #2B3B39;
tailwind
bg-[hsl(172,16%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(172, 16%, 20%, 0.4);
css variable
--color-primary: hsl(172, 16%, 20%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(172, 16%, 20%)?
HEX: #2B3B39 | RGB: rgb(43, 59, 57) | CMYK: 27%, 0%, 3%, 77% | HSV: 173°, 27%, 23%. Copy any format from the conversion table above.
What colors go well with #2B3B39?
The complementary color is HSL(352, 16%, 20%). 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, 16%, 20%) in CSS?
As HSL: color: hsl(172, 16%, 20%); — As HEX: color: #2B3B39; — As RGB: color: rgb(43, 59, 57); — Tailwind CSS: bg-[hsl(172,16%,20%)] — CSS variable: --color-primary: hsl(172, 16%, 20%);