HSL(257, 55%, 22%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,55%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 55%, 22%) | color: hsl(257, 55%, 22%) | |
| HEX | #2B1957 | color: #2B1957 | |
| RGB | rgb(43, 25, 87) | color: rgb(43, 25, 87) | |
| CMYK | cmyk(51%, 71%, 0%, 66%) | — | |
| HSV | hsv(257, 71%, 34%) | — | |
| HWB | hwb(257 10% 66%) | color: hwb(257 10% 66%) | |
| OKLCH | oklch(0.2778 0.1059 291.29) | color: oklch(0.2778 0.1059 291.29) | |
| Lab | lab(14.94 25.78 -34.49) | color: lab(14.94 25.78 -34.49) | |
| LCH | lch(14.94 43.06 306.78) | color: lch(14.94 43.06 306.78) |
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)
#232348 — rgb(35, 35, 72)
Deuteranopia (Green-blind)
#242644 — rgb(36, 38, 68)
Tritanopia (Blue-blind)
#2A3C3A — rgb(42, 60, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 55%, 22%);
text
color: hsl(257, 55%, 22%);
border
border: 2px solid hsl(257, 55%, 22%);
gradient light
background: linear-gradient(to right, hsl(257, 55%, 42%), hsl(257, 55%, 22%));
gradient dark
background: linear-gradient(to right, hsl(257, 55%, 22%), hsl(257, 55%, 2%))
hex
background-color: #2B1957;
tailwind
bg-[hsl(257,55%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 55%, 22%, 0.4);
css variable
--color-primary: hsl(257, 55%, 22%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 55%, 22%)?
HEX: #2B1957 | RGB: rgb(43, 25, 87) | CMYK: 51%, 71%, 0%, 66% | HSV: 257°, 71%, 34%. Copy any format from the conversion table above.
What colors go well with #2B1957?
The complementary color is HSL(77, 55%, 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, 55%, 22%) in CSS?
As HSL: color: hsl(257, 55%, 22%); — As HEX: color: #2B1957; — As RGB: color: rgb(43, 25, 87); — Tailwind CSS: bg-[hsl(257,55%,22%)] — CSS variable: --color-primary: hsl(257, 55%, 22%);