HSL(271, 19%, 31%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(271,19%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(271, 19%, 31%) color: hsl(271, 19%, 31%)
HEX #50405E color: #50405E
RGB rgb(80, 64, 94) color: rgb(80, 64, 94)
CMYK cmyk(15%, 32%, 0%, 63%)
HSV hsv(272, 32%, 37%)
HWB hwb(272 25% 63%) color: hwb(272 25% 63%)
OKLCH oklch(0.4007 0.0532 308.45) color: oklch(0.4007 0.0532 308.45)
Lab lab(29.86 13.5 -15.2) color: lab(29.86 13.5 -15.2)
LCH lch(29.86 20.33 311.61) color: lch(29.86 20.33 311.61)

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 9.39:1
vs Black 2.24: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)

#494957 — rgb(73, 73, 87)

Deuteranopia (Green-blind)

#4A4B55 — rgb(74, 75, 85)

Tritanopia (Blue-blind)

#4F5150 — rgb(79, 81, 80)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(271, 19%, 31%);

text

color: hsl(271, 19%, 31%);

border

border: 2px solid hsl(271, 19%, 31%);

gradient light

background: linear-gradient(to right, hsl(271, 19%, 51%), hsl(271, 19%, 31%));

gradient dark

background: linear-gradient(to right, hsl(271, 19%, 31%), hsl(271, 19%, 11%))

hex

background-color: #50405E;

tailwind

bg-[hsl(271,19%,31%)]

box shadow

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

css variable

--color-primary: hsl(271, 19%, 31%);

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, 19%, 31%)?

HEX: #50405E | RGB: rgb(80, 64, 94) | CMYK: 15%, 32%, 0%, 63% | HSV: 272°, 32%, 37%. Copy any format from the conversion table above.

What colors go well with #50405E?

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

As HSL: color: hsl(271, 19%, 31%); — As HEX: color: #50405E; — As RGB: color: rgb(80, 64, 94); — Tailwind CSS: bg-[hsl(271,19%,31%)] — CSS variable: --color-primary: hsl(271, 19%, 31%);