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
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
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
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
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%);