HSL(273, 40%, 12%)

Very Dark Indigo — Indigo color

Adjust Color

Color Information

Color Name

Very Dark Indigo

Color Family

Indigo

Warm / Cool

🔵 Cool

Temperature

6500K

CSS Class

bg-[hsl(273,40%,12%)]

Color Conversions

Format Value CSS Usage
HSL hsl(273, 40%, 12%) color: hsl(273, 40%, 12%)
HEX #20122B color: #20122B
RGB rgb(32, 18, 43) color: rgb(32, 18, 43)
CMYK cmyk(26%, 58%, 0%, 83%)
HSV hsv(274, 58%, 17%)
HWB hwb(274 7% 83%) color: hwb(274 7% 83%)
OKLCH oklch(0.2146 0.0507 308.54) color: oklch(0.2146 0.0507 308.54)
Lab lab(8.25 13.41 -14.23) color: lab(8.25 13.41 -14.23)
LCH lch(8.25 19.55 313.3) color: lch(8.25 19.55 313.3)

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 17.75:1
vs Black 1.18: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)

#1A1A25 — rgb(26, 26, 37)

Deuteranopia (Green-blind)

#1B1C24 — rgb(27, 28, 36)

Tritanopia (Blue-blind)

#1F201F — rgb(31, 32, 31)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(273, 40%, 12%);

text

color: hsl(273, 40%, 12%);

border

border: 2px solid hsl(273, 40%, 12%);

gradient light

background: linear-gradient(to right, hsl(273, 40%, 32%), hsl(273, 40%, 12%));

gradient dark

background: linear-gradient(to right, hsl(273, 40%, 12%), hsl(273, 40%, 0%))

hex

background-color: #20122B;

tailwind

bg-[hsl(273,40%,12%)]

box shadow

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

css variable

--color-primary: hsl(273, 40%, 12%);

Related Colors

Use Cases for Very Dark Indigo

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(273, 40%, 12%)?

HEX: #20122B | RGB: rgb(32, 18, 43) | CMYK: 26%, 58%, 0%, 83% | HSV: 274°, 58%, 17%. Copy any format from the conversion table above.

What colors go well with #20122B?

The complementary color is HSL(93, 40%, 12%). For a triadic harmony, use hues 273°, 33°, and 153°. For analogous combinations, try hues 243° and 303°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(273, 40%, 12%) in CSS?

As HSL: color: hsl(273, 40%, 12%); — As HEX: color: #20122B; — As RGB: color: rgb(32, 18, 43); — Tailwind CSS: bg-[hsl(273,40%,12%)] — CSS variable: --color-primary: hsl(273, 40%, 12%);