HSL(262, 50%, 18%)

Indigo — Indigo color

Adjust Color

Color Information

Color Name

Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(262,50%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(262, 50%, 18%) color: hsl(262, 50%, 18%)
HEX #281745 color: #281745
RGB rgb(40, 23, 69) color: rgb(40, 23, 69)
CMYK cmyk(42%, 67%, 0%, 73%)
HSV hsv(262, 67%, 27%)
HWB hwb(262 9% 73%) color: hwb(262 9% 73%)
OKLCH oklch(0.255 0.083 297.18) color: oklch(0.255 0.083 297.18)
Lab lab(12.57 20.55 -25.99) color: lab(12.57 20.55 -25.99)
LCH lch(12.57 33.13 308.33) color: lch(12.57 33.13 308.33)

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 16.17:1
vs Black 1.3: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)

#21203A — rgb(33, 32, 58)

Deuteranopia (Green-blind)

#222337 — rgb(34, 35, 55)

Tritanopia (Blue-blind)

#27312F — rgb(39, 49, 47)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(262, 50%, 18%);

text

color: hsl(262, 50%, 18%);

border

border: 2px solid hsl(262, 50%, 18%);

gradient light

background: linear-gradient(to right, hsl(262, 50%, 38%), hsl(262, 50%, 18%));

gradient dark

background: linear-gradient(to right, hsl(262, 50%, 18%), hsl(262, 50%, 0%))

hex

background-color: #281745;

tailwind

bg-[hsl(262,50%,18%)]

box shadow

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

css variable

--color-primary: hsl(262, 50%, 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(262, 50%, 18%)?

HEX: #281745 | RGB: rgb(40, 23, 69) | CMYK: 42%, 67%, 0%, 73% | HSV: 262°, 67%, 27%. Copy any format from the conversion table above.

What colors go well with #281745?

The complementary color is HSL(82, 50%, 18%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(262, 50%, 18%) in CSS?

As HSL: color: hsl(262, 50%, 18%); — As HEX: color: #281745; — As RGB: color: rgb(40, 23, 69); — Tailwind CSS: bg-[hsl(262,50%,18%)] — CSS variable: --color-primary: hsl(262, 50%, 18%);