HSL(271, 20%, 34%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(271,20%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(271, 20%, 34%) color: hsl(271, 20%, 34%)
HEX #574568 color: #574568
RGB rgb(87, 69, 104) color: rgb(87, 69, 104)
CMYK cmyk(16%, 34%, 0%, 59%)
HSV hsv(271, 34%, 41%)
HWB hwb(271 27% 59%) color: hwb(271 27% 59%)
OKLCH oklch(0.4236 0.0608 307.49) color: oklch(0.4236 0.0608 307.49)
Lab lab(32.44 15.3 -17.54) color: lab(32.44 15.3 -17.54)
LCH lch(32.44 23.28 311.1) color: lch(32.44 23.28 311.1)

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 8.55:1
vs Black 2.46: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)

#4F4F60 — rgb(79, 79, 96)

Deuteranopia (Green-blind)

#50525E — rgb(80, 82, 94)

Tritanopia (Blue-blind)

#565957 — rgb(86, 89, 87)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(271, 20%, 34%);

text

color: hsl(271, 20%, 34%);

border

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

gradient light

background: linear-gradient(to right, hsl(271, 20%, 54%), hsl(271, 20%, 34%));

gradient dark

background: linear-gradient(to right, hsl(271, 20%, 34%), hsl(271, 20%, 14%))

hex

background-color: #574568;

tailwind

bg-[hsl(271,20%,34%)]

box shadow

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

css variable

--color-primary: hsl(271, 20%, 34%);

Related Colors

Use Cases for Indigo

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

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

HEX: #574568 | RGB: rgb(87, 69, 104) | CMYK: 16%, 34%, 0%, 59% | HSV: 271°, 34%, 41%. Copy any format from the conversion table above.

What colors go well with #574568?

The complementary color is HSL(91, 20%, 34%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(271, 20%, 34%) in CSS?

As HSL: color: hsl(271, 20%, 34%); — As HEX: color: #574568; — As RGB: color: rgb(87, 69, 104); — Tailwind CSS: bg-[hsl(271,20%,34%)] — CSS variable: --color-primary: hsl(271, 20%, 34%);