HSL(164, 40%, 21%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(164,40%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(164, 40%, 21%) | color: hsl(164, 40%, 21%) | |
| HEX | #204B40 | color: #204B40 | |
| RGB | rgb(32, 75, 64) | color: rgb(32, 75, 64) | |
| CMYK | cmyk(57%, 0%, 15%, 71%) | — | |
| HSV | hsv(165, 57%, 29%) | — | |
| HWB | hwb(165 12% 71%) | color: hwb(165 12% 71%) | |
| OKLCH | oklch(0.3785 0.0519 174.37) | color: oklch(0.3785 0.0519 174.37) | |
| Lab | lab(28.67 -18.08 2.02) | color: lab(28.67 -18.08 2.02) | |
| LCH | lch(28.67 18.19 173.63) | color: lch(28.67 18.19 173.63) |
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)
#333343 — rgb(51, 51, 67)
Deuteranopia (Green-blind)
#302D43 — rgb(48, 45, 67)
Tritanopia (Blue-blind)
#224545 — rgb(34, 69, 69)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(164, 40%, 21%);
text
color: hsl(164, 40%, 21%);
border
border: 2px solid hsl(164, 40%, 21%);
gradient light
background: linear-gradient(to right, hsl(164, 40%, 41%), hsl(164, 40%, 21%));
gradient dark
background: linear-gradient(to right, hsl(164, 40%, 21%), hsl(164, 40%, 1%))
hex
background-color: #204B40;
tailwind
bg-[hsl(164,40%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(164, 40%, 21%, 0.4);
css variable
--color-primary: hsl(164, 40%, 21%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(164, 40%, 21%)?
HEX: #204B40 | RGB: rgb(32, 75, 64) | CMYK: 57%, 0%, 15%, 71% | HSV: 165°, 57%, 29%. Copy any format from the conversion table above.
What colors go well with #204B40?
The complementary color is HSL(344, 40%, 21%). For a triadic harmony, use hues 164°, 284°, and 44°. For analogous combinations, try hues 134° and 194°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(164, 40%, 21%) in CSS?
As HSL: color: hsl(164, 40%, 21%); — As HEX: color: #204B40; — As RGB: color: rgb(32, 75, 64); — Tailwind CSS: bg-[hsl(164,40%,21%)] — CSS variable: --color-primary: hsl(164, 40%, 21%);