HSL(260, 80%, 34%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(260,80%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(260, 80%, 34%) color: hsl(260, 80%, 34%)
HEX #40119C color: #40119C
RGB rgb(64, 17, 156) color: rgb(64, 17, 156)
CMYK cmyk(59%, 89%, 0%, 39%)
HSV hsv(260, 89%, 61%)
HWB hwb(260 7% 39%) color: hwb(260 7% 39%)
OKLCH oklch(0.3634 0.1952 286.85) color: oklch(0.3634 0.1952 286.85)
Lab lab(23.31 52.52 -64.87) color: lab(23.31 52.52 -64.87)
LCH lch(23.31 83.47 308.99) color: lch(23.31 83.47 308.99)

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 11.81:1
vs Black 1.78: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)

#2C2B7A — rgb(44, 43, 122)

Deuteranopia (Green-blind)

#2E3272 — rgb(46, 50, 114)

Tritanopia (Blue-blind)

#3E605A — rgb(62, 96, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(260, 80%, 34%);

text

color: hsl(260, 80%, 34%);

border

border: 2px solid hsl(260, 80%, 34%);

gradient light

background: linear-gradient(to right, hsl(260, 80%, 54%), hsl(260, 80%, 34%));

gradient dark

background: linear-gradient(to right, hsl(260, 80%, 34%), hsl(260, 80%, 14%))

hex

background-color: #40119C;

tailwind

bg-[hsl(260,80%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(260, 80%, 34%, 0.4);

css variable

--color-primary: hsl(260, 80%, 34%);

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(260, 80%, 34%)?

HEX: #40119C | RGB: rgb(64, 17, 156) | CMYK: 59%, 89%, 0%, 39% | HSV: 260°, 89%, 61%. Copy any format from the conversion table above.

What colors go well with #40119C?

The complementary color is HSL(80, 80%, 34%). For a triadic harmony, use hues 260°, 20°, and 140°. For analogous combinations, try hues 230° and 290°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(260, 80%, 34%) in CSS?

As HSL: color: hsl(260, 80%, 34%); — As HEX: color: #40119C; — As RGB: color: rgb(64, 17, 156); — Tailwind CSS: bg-[hsl(260,80%,34%)] — CSS variable: --color-primary: hsl(260, 80%, 34%);