HSL(276, 65%, 18%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(276,65%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(276, 65%, 18%) color: hsl(276, 65%, 18%)
HEX #34104C color: #34104C
RGB rgb(52, 16, 76) color: rgb(52, 16, 76)
CMYK cmyk(32%, 79%, 0%, 70%)
HSV hsv(276, 79%, 30%)
HWB hwb(276 6% 70%) color: hwb(276 6% 70%)
OKLCH oklch(0.2664 0.1063 308.15) color: oklch(0.2664 0.1063 308.15)
Lab lab(13.37 29.76 -29.47) color: lab(13.37 29.76 -29.47)
LCH lch(13.37 41.88 315.28) color: lch(13.37 41.88 315.28)

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 15.86:1
vs Black 1.32: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)

#24243D — rgb(36, 36, 61)

Deuteranopia (Green-blind)

#27293A — rgb(39, 41, 58)

Tritanopia (Blue-blind)

#323230 — rgb(50, 50, 48)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(276, 65%, 18%);

text

color: hsl(276, 65%, 18%);

border

border: 2px solid hsl(276, 65%, 18%);

gradient light

background: linear-gradient(to right, hsl(276, 65%, 38%), hsl(276, 65%, 18%));

gradient dark

background: linear-gradient(to right, hsl(276, 65%, 18%), hsl(276, 65%, 0%))

hex

background-color: #34104C;

tailwind

bg-[hsl(276,65%,18%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(276, 65%, 18%, 0.4);

css variable

--color-primary: hsl(276, 65%, 18%);

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(276, 65%, 18%)?

HEX: #34104C | RGB: rgb(52, 16, 76) | CMYK: 32%, 79%, 0%, 70% | HSV: 276°, 79%, 30%. Copy any format from the conversion table above.

What colors go well with #34104C?

The complementary color is HSL(96, 65%, 18%). For a triadic harmony, use hues 276°, 36°, and 156°. For analogous combinations, try hues 246° and 306°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(276, 65%, 18%) in CSS?

As HSL: color: hsl(276, 65%, 18%); — As HEX: color: #34104C; — As RGB: color: rgb(52, 16, 76); — Tailwind CSS: bg-[hsl(276,65%,18%)] — CSS variable: --color-primary: hsl(276, 65%, 18%);