HSL(166, 20%, 20%)

Cyan — Cyan color

Adjust Color

Color Information

Color Name

Cyan

Color Family

Cyan

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(166, 20%, 20%) color: hsl(166, 20%, 20%)
HEX #293D38 color: #293D38
RGB rgb(41, 61, 56) color: rgb(41, 61, 56)
CMYK cmyk(33%, 0%, 8%, 76%)
HSV hsv(165, 33%, 24%)
HWB hwb(165 16% 76%) color: hwb(165 16% 76%)
OKLCH oklch(0.3412 0.027 177.36) color: oklch(0.3412 0.027 177.36)
Lab lab(23.98 -9.27 0.52) color: lab(23.98 -9.27 0.52)
LCH lch(23.98 9.28 176.79) color: lch(23.98 9.28 176.79)

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.55: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)

#323239 — rgb(50, 50, 57)

Deuteranopia (Green-blind)

#312F3A — rgb(49, 47, 58)

Tritanopia (Blue-blind)

#2A3A3A — rgb(42, 58, 58)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #293D38;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(166, 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(166, 20%, 20%)?

HEX: #293D38 | RGB: rgb(41, 61, 56) | CMYK: 33%, 0%, 8%, 76% | HSV: 165°, 33%, 24%. Copy any format from the conversion table above.

What colors go well with #293D38?

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

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