HSL(158, 31%, 19%)
Cyan — Cyan color
Adjust Color
Color Information
Color Name
Cyan
Color Family
Cyan
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(158,31%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(158, 31%, 19%) | color: hsl(158, 31%, 19%) | |
| HEX | #213F34 | color: #213F34 | |
| RGB | rgb(33, 63, 52) | color: rgb(33, 63, 52) | |
| CMYK | cmyk(48%, 0%, 17%, 75%) | — | |
| HSV | hsv(158, 48%, 25%) | — | |
| HWB | hwb(158 13% 75%) | color: hwb(158 13% 75%) | |
| OKLCH | oklch(0.3404 0.0413 168.28) | color: oklch(0.3404 0.0413 168.28) | |
| Lab | lab(24.08 -14.34 3.27) | color: lab(24.08 -14.34 3.27) | |
| LCH | lch(24.08 14.71 167.15) | color: lch(24.08 14.71 167.15) |
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)
#2E2E37 — rgb(46, 46, 55)
Deuteranopia (Green-blind)
#2C2A37 — rgb(44, 42, 55)
Tritanopia (Blue-blind)
#233939 — rgb(35, 57, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(158, 31%, 19%);
text
color: hsl(158, 31%, 19%);
border
border: 2px solid hsl(158, 31%, 19%);
gradient light
background: linear-gradient(to right, hsl(158, 31%, 39%), hsl(158, 31%, 19%));
gradient dark
background: linear-gradient(to right, hsl(158, 31%, 19%), hsl(158, 31%, 0%))
hex
background-color: #213F34;
tailwind
bg-[hsl(158,31%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(158, 31%, 19%, 0.4);
css variable
--color-primary: hsl(158, 31%, 19%);
Related Colors
Use Cases for Cyan
Frequently Asked Questions
What are all the color codes for HSL(158, 31%, 19%)?
HEX: #213F34 | RGB: rgb(33, 63, 52) | CMYK: 48%, 0%, 17%, 75% | HSV: 158°, 48%, 25%. Copy any format from the conversion table above.
What colors go well with #213F34?
The complementary color is HSL(338, 31%, 19%). 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, 31%, 19%) in CSS?
As HSL: color: hsl(158, 31%, 19%); — As HEX: color: #213F34; — As RGB: color: rgb(33, 63, 52); — Tailwind CSS: bg-[hsl(158,31%,19%)] — CSS variable: --color-primary: hsl(158, 31%, 19%);