HSL(261, 71%, 32%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(261,71%,32%)]

Color Conversions

Format Value CSS Usage
HSL hsl(261, 71%, 32%) color: hsl(261, 71%, 32%)
HEX #40188C color: #40188C
RGB rgb(64, 24, 140) color: rgb(64, 24, 140)
CMYK cmyk(54%, 83%, 0%, 45%)
HSV hsv(261, 83%, 55%)
HWB hwb(261 9% 45%) color: hwb(261 9% 45%)
OKLCH oklch(0.3522 0.1727 290.02) color: oklch(0.3522 0.1727 290.02)
Lab lab(22.43 45.65 -56.42) color: lab(22.43 45.65 -56.42)
LCH lch(22.43 72.58 308.98) color: lch(22.43 72.58 308.98)

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 12.16:1
vs Black 1.73: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)

#2F2E70 — rgb(47, 46, 112)

Deuteranopia (Green-blind)

#313469 — rgb(49, 52, 105)

Tritanopia (Blue-blind)

#3E5A55 — rgb(62, 90, 85)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(261, 71%, 32%);

text

color: hsl(261, 71%, 32%);

border

border: 2px solid hsl(261, 71%, 32%);

gradient light

background: linear-gradient(to right, hsl(261, 71%, 52%), hsl(261, 71%, 32%));

gradient dark

background: linear-gradient(to right, hsl(261, 71%, 32%), hsl(261, 71%, 12%))

hex

background-color: #40188C;

tailwind

bg-[hsl(261,71%,32%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(261, 71%, 32%, 0.4);

css variable

--color-primary: hsl(261, 71%, 32%);

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(261, 71%, 32%)?

HEX: #40188C | RGB: rgb(64, 24, 140) | CMYK: 54%, 83%, 0%, 45% | HSV: 261°, 83%, 55%. Copy any format from the conversion table above.

What colors go well with #40188C?

The complementary color is HSL(81, 71%, 32%). For a triadic harmony, use hues 261°, 21°, and 141°. For analogous combinations, try hues 231° and 291°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(261, 71%, 32%) in CSS?

As HSL: color: hsl(261, 71%, 32%); — As HEX: color: #40188C; — As RGB: color: rgb(64, 24, 140); — Tailwind CSS: bg-[hsl(261,71%,32%)] — CSS variable: --color-primary: hsl(261, 71%, 32%);