HSL(275, 50%, 24%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(275,50%,24%)]

Color Conversions

Format Value CSS Usage
HSL hsl(275, 50%, 24%) color: hsl(275, 50%, 24%)
HEX #421F5C color: #421F5C
RGB rgb(66, 31, 92) color: rgb(66, 31, 92)
CMYK cmyk(28%, 66%, 0%, 64%)
HSV hsv(274, 66%, 36%)
HWB hwb(274 12% 64%) color: hwb(274 12% 64%)
OKLCH oklch(0.3202 0.1074 307.89) color: oklch(0.3202 0.1074 307.89)
Lab lab(19.68 29.3 -30.01) color: lab(19.68 29.3 -30.01)
LCH lch(19.68 41.94 314.31) color: lch(19.68 41.94 314.31)

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 13.27:1
vs Black 1.58: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)

#33334D — rgb(51, 51, 77)

Deuteranopia (Green-blind)

#35384A — rgb(53, 56, 74)

Tritanopia (Blue-blind)

#40423F — rgb(64, 66, 63)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(275, 50%, 24%);

text

color: hsl(275, 50%, 24%);

border

border: 2px solid hsl(275, 50%, 24%);

gradient light

background: linear-gradient(to right, hsl(275, 50%, 44%), hsl(275, 50%, 24%));

gradient dark

background: linear-gradient(to right, hsl(275, 50%, 24%), hsl(275, 50%, 4%))

hex

background-color: #421F5C;

tailwind

bg-[hsl(275,50%,24%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(275, 50%, 24%, 0.4);

css variable

--color-primary: hsl(275, 50%, 24%);

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(275, 50%, 24%)?

HEX: #421F5C | RGB: rgb(66, 31, 92) | CMYK: 28%, 66%, 0%, 64% | HSV: 274°, 66%, 36%. Copy any format from the conversion table above.

What colors go well with #421F5C?

The complementary color is HSL(95, 50%, 24%). For a triadic harmony, use hues 275°, 35°, and 155°. For analogous combinations, try hues 245° and 305°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(275, 50%, 24%) in CSS?

As HSL: color: hsl(275, 50%, 24%); — As HEX: color: #421F5C; — As RGB: color: rgb(66, 31, 92); — Tailwind CSS: bg-[hsl(275,50%,24%)] — CSS variable: --color-primary: hsl(275, 50%, 24%);