HSL(158, 20%, 20%)

Cyan — Cyan color

Adjust Color

Color Information

Color Name

Cyan

Color Family

Cyan

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

bg-[hsl(158,20%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(158, 20%, 20%) color: hsl(158, 20%, 20%)
HEX #293D36 color: #293D36
RGB rgb(41, 61, 54) color: rgb(41, 61, 54)
CMYK cmyk(33%, 0%, 11%, 76%)
HSV hsv(159, 33%, 24%)
HWB hwb(159 16% 76%) color: hwb(159 16% 76%)
OKLCH oklch(0.3405 0.0284 170.85) color: oklch(0.3405 0.0284 170.85)
Lab lab(23.92 -9.79 1.76) color: lab(23.92 -9.79 1.76)
LCH lch(23.92 9.95 169.81) color: lch(23.92 9.95 169.81)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 11.57:1
vs Black 1.82:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#323238 — rgb(50, 50, 56)

Deuteranopia (Green-blind)

#312F38 — rgb(49, 47, 56)

Tritanopia (Blue-blind)

#2A3939 — rgb(42, 57, 57)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(158, 20%, 20%);

text

color: hsl(158, 20%, 20%);

border

border: 2px solid hsl(158, 20%, 20%);

gradient light

background: linear-gradient(to right, hsl(158, 20%, 40%), hsl(158, 20%, 20%));

gradient dark

background: linear-gradient(to right, hsl(158, 20%, 20%), hsl(158, 20%, 0%))

hex

background-color: #293D36;

tailwind

bg-[hsl(158,20%,20%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(158, 20%, 20%, 0.4);

css variable

--color-primary: hsl(158, 20%, 20%);

Related Colors

Use Cases for Cyan

Tech/SaaS products Medical apps Water/ocean themes Clean UI elements Data viz

Frequently Asked Questions

What are all the color codes for HSL(158, 20%, 20%)?

HEX: #293D36 | RGB: rgb(41, 61, 54) | CMYK: 33%, 0%, 11%, 76% | HSV: 159°, 33%, 24%. Copy any format from the conversion table above.

What colors go well with #293D36?

The complementary color is HSL(338, 20%, 20%). 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, 20%, 20%) in CSS?

As HSL: color: hsl(158, 20%, 20%); — As HEX: color: #293D36; — As RGB: color: rgb(41, 61, 54); — Tailwind CSS: bg-[hsl(158,20%,20%)] — CSS variable: --color-primary: hsl(158, 20%, 20%);