HSL(166, 32%, 27%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(166,32%,27%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(166, 32%, 27%) | color: hsl(166, 32%, 27%) | |
| HEX | #2F5B51 | color: #2F5B51 | |
| RGB | rgb(47, 91, 81) | color: rgb(47, 91, 81) | |
| CMYK | cmyk(48%, 0%, 11%, 64%) | — | |
| HSV | hsv(166, 48%, 36%) | — | |
| HWB | hwb(166 19% 64%) | color: hwb(166 19% 64%) | |
| OKLCH | oklch(0.4362 0.052 177.26) | color: oklch(0.4362 0.052 177.26) | |
| Lab | lab(35.36 -17.99 1.04) | color: lab(35.36 -17.99 1.04) | |
| LCH | lch(35.36 18.02 176.69) | color: lch(35.36 18.02 176.69) |
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)
#424253 — rgb(66, 66, 83)
Deuteranopia (Green-blind)
#403C54 — rgb(64, 60, 84)
Tritanopia (Blue-blind)
#315556 — rgb(49, 85, 86)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(166, 32%, 27%);
text
color: hsl(166, 32%, 27%);
border
border: 2px solid hsl(166, 32%, 27%);
gradient light
background: linear-gradient(to right, hsl(166, 32%, 47%), hsl(166, 32%, 27%));
gradient dark
background: linear-gradient(to right, hsl(166, 32%, 27%), hsl(166, 32%, 7%))
hex
background-color: #2F5B51;
tailwind
bg-[hsl(166,32%,27%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(166, 32%, 27%, 0.4);
css variable
--color-primary: hsl(166, 32%, 27%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(166, 32%, 27%)?
HEX: #2F5B51 | RGB: rgb(47, 91, 81) | CMYK: 48%, 0%, 11%, 64% | HSV: 166°, 48%, 36%. Copy any format from the conversion table above.
What colors go well with #2F5B51?
The complementary color is HSL(346, 32%, 27%). For a triadic harmony, use hues 166°, 286°, and 46°. For analogous combinations, try hues 136° and 196°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(166, 32%, 27%) in CSS?
As HSL: color: hsl(166, 32%, 27%); — As HEX: color: #2F5B51; — As RGB: color: rgb(47, 91, 81); — Tailwind CSS: bg-[hsl(166,32%,27%)] — CSS variable: --color-primary: hsl(166, 32%, 27%);