HSL(166, 45%, 22%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(166,45%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(166, 45%, 22%) | color: hsl(166, 45%, 22%) | |
| HEX | #1F5146 | color: #1F5146 | |
| RGB | rgb(31, 81, 70) | color: rgb(31, 81, 70) | |
| CMYK | cmyk(62%, 0%, 14%, 68%) | — | |
| HSV | hsv(167, 62%, 32%) | — | |
| HWB | hwb(167 12% 68%) | color: hwb(167 12% 68%) | |
| OKLCH | oklch(0.3973 0.0571 176.47) | color: oklch(0.3973 0.0571 176.47) | |
| Lab | lab(30.92 -19.87 1.44) | color: lab(30.92 -19.87 1.44) | |
| LCH | lch(30.92 19.92 175.85) | color: lch(30.92 19.92 175.85) |
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)
#353549 — rgb(53, 53, 73)
Deuteranopia (Green-blind)
#322E49 — rgb(50, 46, 73)
Tritanopia (Blue-blind)
#224B4B — rgb(34, 75, 75)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(166, 45%, 22%);
text
color: hsl(166, 45%, 22%);
border
border: 2px solid hsl(166, 45%, 22%);
gradient light
background: linear-gradient(to right, hsl(166, 45%, 42%), hsl(166, 45%, 22%));
gradient dark
background: linear-gradient(to right, hsl(166, 45%, 22%), hsl(166, 45%, 2%))
hex
background-color: #1F5146;
tailwind
bg-[hsl(166,45%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(166, 45%, 22%, 0.4);
css variable
--color-primary: hsl(166, 45%, 22%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(166, 45%, 22%)?
HEX: #1F5146 | RGB: rgb(31, 81, 70) | CMYK: 62%, 0%, 14%, 68% | HSV: 167°, 62%, 32%. Copy any format from the conversion table above.
What colors go well with #1F5146?
The complementary color is HSL(346, 45%, 22%). 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%, 22%) in CSS?
As HSL: color: hsl(166, 45%, 22%); — As HEX: color: #1F5146; — As RGB: color: rgb(31, 81, 70); — Tailwind CSS: bg-[hsl(166,45%,22%)] — CSS variable: --color-primary: hsl(166, 45%, 22%);