HSL(193, 42%, 21%)

Cyan — Cyan color

Adjust Color

Color Information

Color Name

Cyan

Color Family

Cyan

Warm / Cool

🔵 Cool

Temperature

7000K

CSS Class

bg-[hsl(193,42%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(193, 42%, 21%) color: hsl(193, 42%, 21%)
HEX #1F424C color: #1F424C
RGB rgb(31, 66, 76) color: rgb(31, 66, 76)
CMYK cmyk(59%, 13%, 0%, 70%)
HSV hsv(193, 59%, 30%)
HWB hwb(193 12% 70%) color: hwb(193 12% 70%)
OKLCH oklch(0.3574 0.0439 218.74) color: oklch(0.3574 0.0439 218.74)
Lab lab(25.89 -9.33 -9.92) color: lab(25.89 -9.33 -9.92)
LCH lch(25.89 13.62 226.76) color: lch(25.89 13.62 226.76)

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 10.81:1
vs Black 1.94: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)

#2E2E4A — rgb(46, 46, 74)

Deuteranopia (Green-blind)

#2C2A49 — rgb(44, 42, 73)

Tritanopia (Blue-blind)

#214847 — rgb(33, 72, 71)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(193, 42%, 21%);

text

color: hsl(193, 42%, 21%);

border

border: 2px solid hsl(193, 42%, 21%);

gradient light

background: linear-gradient(to right, hsl(193, 42%, 41%), hsl(193, 42%, 21%));

gradient dark

background: linear-gradient(to right, hsl(193, 42%, 21%), hsl(193, 42%, 1%))

hex

background-color: #1F424C;

tailwind

bg-[hsl(193,42%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(193, 42%, 21%, 0.4);

css variable

--color-primary: hsl(193, 42%, 21%);

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(193, 42%, 21%)?

HEX: #1F424C | RGB: rgb(31, 66, 76) | CMYK: 59%, 13%, 0%, 70% | HSV: 193°, 59%, 30%. Copy any format from the conversion table above.

What colors go well with #1F424C?

The complementary color is HSL(13, 42%, 21%). For a triadic harmony, use hues 193°, 313°, and 73°. For analogous combinations, try hues 163° and 223°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(193, 42%, 21%) in CSS?

As HSL: color: hsl(193, 42%, 21%); — As HEX: color: #1F424C; — As RGB: color: rgb(31, 66, 76); — Tailwind CSS: bg-[hsl(193,42%,21%)] — CSS variable: --color-primary: hsl(193, 42%, 21%);