HSL(166, 45%, 21%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(166,45%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(166, 45%, 21%) | color: hsl(166, 45%, 21%) | |
| HEX | #1D4E42 | color: #1D4E42 | |
| RGB | rgb(29, 78, 66) | color: rgb(29, 78, 66) | |
| CMYK | cmyk(63%, 0%, 15%, 69%) | — | |
| HSV | hsv(165, 63%, 31%) | — | |
| HWB | hwb(165 11% 69%) | color: hwb(165 11% 69%) | |
| OKLCH | oklch(0.3865 0.0569 174.5) | color: oklch(0.3865 0.0569 174.5) | |
| Lab | lab(29.67 -19.89 2.18) | color: lab(29.67 -19.89 2.18) | |
| LCH | lch(29.67 20.01 173.75) | color: lch(29.67 20.01 173.75) |
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)
#323345 — rgb(50, 51, 69)
Deuteranopia (Green-blind)
#2F2C46 — rgb(47, 44, 70)
Tritanopia (Blue-blind)
#1F4748 — rgb(31, 71, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(166, 45%, 21%);
text
color: hsl(166, 45%, 21%);
border
border: 2px solid hsl(166, 45%, 21%);
gradient light
background: linear-gradient(to right, hsl(166, 45%, 41%), hsl(166, 45%, 21%));
gradient dark
background: linear-gradient(to right, hsl(166, 45%, 21%), hsl(166, 45%, 1%))
hex
background-color: #1D4E42;
tailwind
bg-[hsl(166,45%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(166, 45%, 21%, 0.4);
css variable
--color-primary: hsl(166, 45%, 21%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(166, 45%, 21%)?
HEX: #1D4E42 | RGB: rgb(29, 78, 66) | CMYK: 63%, 0%, 15%, 69% | HSV: 165°, 63%, 31%. Copy any format from the conversion table above.
What colors go well with #1D4E42?
The complementary color is HSL(346, 45%, 21%). 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, 45%, 21%) in CSS?
As HSL: color: hsl(166, 45%, 21%); — As HEX: color: #1D4E42; — As RGB: color: rgb(29, 78, 66); — Tailwind CSS: bg-[hsl(166,45%,21%)] — CSS variable: --color-primary: hsl(166, 45%, 21%);