HSL(256, 72%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(256,72%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(256, 72%, 20%) | color: hsl(256, 72%, 20%) | |
| HEX | #220E58 | color: #220E58 | |
| RGB | rgb(34, 14, 88) | color: rgb(34, 14, 88) | |
| CMYK | cmyk(61%, 84%, 0%, 65%) | — | |
| HSV | hsv(256, 84%, 35%) | — | |
| HWB | hwb(256 6% 65%) | color: hwb(256 6% 65%) | |
| OKLCH | oklch(0.2526 0.1216 286.24) | color: oklch(0.2526 0.1216 286.24) | |
| Lab | lab(11.68 30.91 -40.54) | color: lab(11.68 30.91 -40.54) | |
| LCH | lch(11.68 50.98 307.32) | color: lch(11.68 50.98 307.32) |
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)
#191946 — rgb(25, 25, 70)
Deuteranopia (Green-blind)
#1B1C42 — rgb(27, 28, 66)
Tritanopia (Blue-blind)
#213835 — rgb(33, 56, 53)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(256, 72%, 20%);
text
color: hsl(256, 72%, 20%);
border
border: 2px solid hsl(256, 72%, 20%);
gradient light
background: linear-gradient(to right, hsl(256, 72%, 40%), hsl(256, 72%, 20%));
gradient dark
background: linear-gradient(to right, hsl(256, 72%, 20%), hsl(256, 72%, 0%))
hex
background-color: #220E58;
tailwind
bg-[hsl(256,72%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(256, 72%, 20%, 0.4);
css variable
--color-primary: hsl(256, 72%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(256, 72%, 20%)?
HEX: #220E58 | RGB: rgb(34, 14, 88) | CMYK: 61%, 84%, 0%, 65% | HSV: 256°, 84%, 35%. Copy any format from the conversion table above.
What colors go well with #220E58?
The complementary color is HSL(76, 72%, 20%). For a triadic harmony, use hues 256°, 16°, and 136°. For analogous combinations, try hues 226° and 286°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(256, 72%, 20%) in CSS?
As HSL: color: hsl(256, 72%, 20%); — As HEX: color: #220E58; — As RGB: color: rgb(34, 14, 88); — Tailwind CSS: bg-[hsl(256,72%,20%)] — CSS variable: --color-primary: hsl(256, 72%, 20%);