HSL(258, 20%, 40%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(258,20%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(258, 20%, 40%) color: hsl(258, 20%, 40%)
HEX #5E527A color: #5E527A
RGB rgb(94, 82, 122) color: rgb(94, 82, 122)
CMYK cmyk(23%, 33%, 0%, 52%)
HSV hsv(258, 33%, 48%)
HWB hwb(258 32% 52%) color: hwb(258 32% 52%)
OKLCH oklch(0.4668 0.0651 297.61) color: oklch(0.4668 0.0651 297.61)
Lab lab(37.52 14.06 -20.88) color: lab(37.52 14.06 -20.88)
LCH lch(37.52 25.17 303.96) color: lch(37.52 25.17 303.96)

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 7.09:1
vs Black 2.96: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)

#595970 — rgb(89, 89, 112)

Deuteranopia (Green-blind)

#5A5A6E — rgb(90, 90, 110)

Tritanopia (Blue-blind)

#5D6967 — rgb(93, 105, 103)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(258, 20%, 40%);

text

color: hsl(258, 20%, 40%);

border

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

gradient light

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

gradient dark

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

hex

background-color: #5E527A;

tailwind

bg-[hsl(258,20%,40%)]

box shadow

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

css variable

--color-primary: hsl(258, 20%, 40%);

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(258, 20%, 40%)?

HEX: #5E527A | RGB: rgb(94, 82, 122) | CMYK: 23%, 33%, 0%, 52% | HSV: 258°, 33%, 48%. Copy any format from the conversion table above.

What colors go well with #5E527A?

The complementary color is HSL(78, 20%, 40%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(258, 20%, 40%) in CSS?

As HSL: color: hsl(258, 20%, 40%); — As HEX: color: #5E527A; — As RGB: color: rgb(94, 82, 122); — Tailwind CSS: bg-[hsl(258,20%,40%)] — CSS variable: --color-primary: hsl(258, 20%, 40%);