HSL(274, 40%, 24%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(274,40%,24%)]

Color Conversions

Format Value CSS Usage
HSL hsl(274, 40%, 24%) color: hsl(274, 40%, 24%)
HEX #402556 color: #402556
RGB rgb(64, 37, 86) color: rgb(64, 37, 86)
CMYK cmyk(26%, 57%, 0%, 66%)
HSV hsv(273, 57%, 34%)
HWB hwb(273 15% 66%) color: hwb(273 15% 66%)
OKLCH oklch(0.3234 0.0883 307.64) color: oklch(0.3234 0.0883 307.64)
Lab lab(20.38 23.46 -24.92) color: lab(20.38 23.46 -24.92)
LCH lch(20.38 34.23 313.27) color: lch(20.38 34.23 313.27)

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.99:1
vs Black 1.62: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)

#34344A — rgb(52, 52, 74)

Deuteranopia (Green-blind)

#363847 — rgb(54, 56, 71)

Tritanopia (Blue-blind)

#3F413F — rgb(63, 65, 63)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(274, 40%, 24%);

text

color: hsl(274, 40%, 24%);

border

border: 2px solid hsl(274, 40%, 24%);

gradient light

background: linear-gradient(to right, hsl(274, 40%, 44%), hsl(274, 40%, 24%));

gradient dark

background: linear-gradient(to right, hsl(274, 40%, 24%), hsl(274, 40%, 4%))

hex

background-color: #402556;

tailwind

bg-[hsl(274,40%,24%)]

box shadow

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

css variable

--color-primary: hsl(274, 40%, 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(274, 40%, 24%)?

HEX: #402556 | RGB: rgb(64, 37, 86) | CMYK: 26%, 57%, 0%, 66% | HSV: 273°, 57%, 34%. Copy any format from the conversion table above.

What colors go well with #402556?

The complementary color is HSL(94, 40%, 24%). For a triadic harmony, use hues 274°, 34°, and 154°. For analogous combinations, try hues 244° and 304°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(274, 40%, 24%) in CSS?

As HSL: color: hsl(274, 40%, 24%); — As HEX: color: #402556; — As RGB: color: rgb(64, 37, 86); — Tailwind CSS: bg-[hsl(274,40%,24%)] — CSS variable: --color-primary: hsl(274, 40%, 24%);