HSL(255, 40%, 28%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(255,40%,28%)]

Color Conversions

Format Value CSS Usage
HSL hsl(255, 40%, 28%) color: hsl(255, 40%, 28%)
HEX #392B64 color: #392B64
RGB rgb(57, 43, 100) color: rgb(57, 43, 100)
CMYK cmyk(43%, 57%, 0%, 61%)
HSV hsv(255, 57%, 39%)
HWB hwb(255 17% 61%) color: hwb(255 17% 61%)
OKLCH oklch(0.3366 0.0966 291.68) color: oklch(0.3366 0.0966 291.68)
Lab lab(22.01 21.64 -31.61) color: lab(22.01 21.64 -31.61)
LCH lch(22.01 38.31 304.4) color: lch(22.01 38.31 304.4)

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.33:1
vs Black 1.7: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)

#333356 — rgb(51, 51, 86)

Deuteranopia (Green-blind)

#343553 — rgb(52, 53, 83)

Tritanopia (Blue-blind)

#384B49 — rgb(56, 75, 73)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(255, 40%, 28%);

text

color: hsl(255, 40%, 28%);

border

border: 2px solid hsl(255, 40%, 28%);

gradient light

background: linear-gradient(to right, hsl(255, 40%, 48%), hsl(255, 40%, 28%));

gradient dark

background: linear-gradient(to right, hsl(255, 40%, 28%), hsl(255, 40%, 8%))

hex

background-color: #392B64;

tailwind

bg-[hsl(255,40%,28%)]

box shadow

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

css variable

--color-primary: hsl(255, 40%, 28%);

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(255, 40%, 28%)?

HEX: #392B64 | RGB: rgb(57, 43, 100) | CMYK: 43%, 57%, 0%, 61% | HSV: 255°, 57%, 39%. Copy any format from the conversion table above.

What colors go well with #392B64?

The complementary color is HSL(75, 40%, 28%). For a triadic harmony, use hues 255°, 15°, and 135°. For analogous combinations, try hues 225° and 285°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(255, 40%, 28%) in CSS?

As HSL: color: hsl(255, 40%, 28%); — As HEX: color: #392B64; — As RGB: color: rgb(57, 43, 100); — Tailwind CSS: bg-[hsl(255,40%,28%)] — CSS variable: --color-primary: hsl(255, 40%, 28%);