HSL(158, 26%, 17%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(158,26%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(158, 26%, 17%) | color: hsl(158, 26%, 17%) | |
| HEX | #20372E | color: #20372E | |
| RGB | rgb(32, 55, 46) | color: rgb(32, 55, 46) | |
| CMYK | cmyk(42%, 0%, 16%, 78%) | — | |
| HSV | hsv(157, 42%, 22%) | — | |
| HWB | hwb(157 13% 78%) | color: hwb(157 13% 78%) | |
| OKLCH | oklch(0.3145 0.0334 167.55) | color: oklch(0.3145 0.0334 167.55) | |
| Lab | lab(20.97 -11.55 2.8) | color: lab(20.97 -11.55 2.8) | |
| LCH | lch(20.97 11.88 166.37) | color: lch(20.97 11.88 166.37) |
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)
#2A2A30 — rgb(42, 42, 48)
Deuteranopia (Green-blind)
#292731 — rgb(41, 39, 49)
Tritanopia (Blue-blind)
#213232 — rgb(33, 50, 50)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(158, 26%, 17%);
text
color: hsl(158, 26%, 17%);
border
border: 2px solid hsl(158, 26%, 17%);
gradient light
background: linear-gradient(to right, hsl(158, 26%, 37%), hsl(158, 26%, 17%));
gradient dark
background: linear-gradient(to right, hsl(158, 26%, 17%), hsl(158, 26%, 0%))
hex
background-color: #20372E;
tailwind
bg-[hsl(158,26%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(158, 26%, 17%, 0.4);
css variable
--color-primary: hsl(158, 26%, 17%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(158, 26%, 17%)?
HEX: #20372E | RGB: rgb(32, 55, 46) | CMYK: 42%, 0%, 16%, 78% | HSV: 157°, 42%, 22%. Copy any format from the conversion table above.
What colors go well with #20372E?
The complementary color is HSL(338, 26%, 17%). For a triadic harmony, use hues 158°, 278°, and 38°. For analogous combinations, try hues 128° and 188°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(158, 26%, 17%) in CSS?
As HSL: color: hsl(158, 26%, 17%); — As HEX: color: #20372E; — As RGB: color: rgb(32, 55, 46); — Tailwind CSS: bg-[hsl(158,26%,17%)] — CSS variable: --color-primary: hsl(158, 26%, 17%);