HSL(263, 60%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(263,60%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(263, 60%, 21%) | color: hsl(263, 60%, 21%) | |
| HEX | #2E1556 | color: #2E1556 | |
| RGB | rgb(46, 21, 86) | color: rgb(46, 21, 86) | |
| CMYK | cmyk(47%, 76%, 0%, 66%) | — | |
| HSV | hsv(263, 76%, 34%) | — | |
| HWB | hwb(263 8% 66%) | color: hwb(263 8% 66%) | |
| OKLCH | oklch(0.2741 0.1105 295.84) | color: oklch(0.2741 0.1105 295.84) | |
| Lab | lab(14.34 28.54 -34.77) | color: lab(14.34 28.54 -34.77) | |
| LCH | lch(14.34 44.98 309.38) | color: lch(14.34 44.98 309.38) |
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)
#232346 — rgb(35, 35, 70)
Deuteranopia (Green-blind)
#252743 — rgb(37, 39, 67)
Tritanopia (Blue-blind)
#2D3A37 — rgb(45, 58, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(263, 60%, 21%);
text
color: hsl(263, 60%, 21%);
border
border: 2px solid hsl(263, 60%, 21%);
gradient light
background: linear-gradient(to right, hsl(263, 60%, 41%), hsl(263, 60%, 21%));
gradient dark
background: linear-gradient(to right, hsl(263, 60%, 21%), hsl(263, 60%, 1%))
hex
background-color: #2E1556;
tailwind
bg-[hsl(263,60%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(263, 60%, 21%, 0.4);
css variable
--color-primary: hsl(263, 60%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(263, 60%, 21%)?
HEX: #2E1556 | RGB: rgb(46, 21, 86) | CMYK: 47%, 76%, 0%, 66% | HSV: 263°, 76%, 34%. Copy any format from the conversion table above.
What colors go well with #2E1556?
The complementary color is HSL(83, 60%, 21%). For a triadic harmony, use hues 263°, 23°, and 143°. For analogous combinations, try hues 233° and 293°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(263, 60%, 21%) in CSS?
As HSL: color: hsl(263, 60%, 21%); — As HEX: color: #2E1556; — As RGB: color: rgb(46, 21, 86); — Tailwind CSS: bg-[hsl(263,60%,21%)] — CSS variable: --color-primary: hsl(263, 60%, 21%);