HSL(257, 91%, 22%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,91%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 91%, 22%) | color: hsl(257, 91%, 22%) | |
| HEX | #22056B | color: #22056B | |
| RGB | rgb(34, 5, 107) | color: rgb(34, 5, 107) | |
| CMYK | cmyk(68%, 95%, 0%, 58%) | — | |
| HSV | hsv(257, 95%, 42%) | — | |
| HWB | hwb(257 2% 58%) | color: hwb(257 2% 58%) | |
| OKLCH | oklch(0.2662 0.1519 281.84) | color: oklch(0.2662 0.1519 281.84) | |
| Lab | lab(12.67 40.63 -51.56) | color: lab(12.67 40.63 -51.56) | |
| LCH | lch(12.67 65.64 308.24) | color: lch(12.67 65.64 308.24) |
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)
#151552 — rgb(21, 21, 82)
Deuteranopia (Green-blind)
#17194C — rgb(23, 25, 76)
Tritanopia (Blue-blind)
#213F3B — rgb(33, 63, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 91%, 22%);
text
color: hsl(257, 91%, 22%);
border
border: 2px solid hsl(257, 91%, 22%);
gradient light
background: linear-gradient(to right, hsl(257, 91%, 42%), hsl(257, 91%, 22%));
gradient dark
background: linear-gradient(to right, hsl(257, 91%, 22%), hsl(257, 91%, 2%))
hex
background-color: #22056B;
tailwind
bg-[hsl(257,91%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 91%, 22%, 0.4);
css variable
--color-primary: hsl(257, 91%, 22%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 91%, 22%)?
HEX: #22056B | RGB: rgb(34, 5, 107) | CMYK: 68%, 95%, 0%, 58% | HSV: 257°, 95%, 42%. Copy any format from the conversion table above.
What colors go well with #22056B?
The complementary color is HSL(77, 91%, 22%). For a triadic harmony, use hues 257°, 17°, and 137°. For analogous combinations, try hues 227° and 287°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(257, 91%, 22%) in CSS?
As HSL: color: hsl(257, 91%, 22%); — As HEX: color: #22056B; — As RGB: color: rgb(34, 5, 107); — Tailwind CSS: bg-[hsl(257,91%,22%)] — CSS variable: --color-primary: hsl(257, 91%, 22%);