HSL(268, 60%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(268,60%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(268, 60%, 21%) | color: hsl(268, 60%, 21%) | |
| HEX | #331556 | color: #331556 | |
| RGB | rgb(51, 21, 86) | color: rgb(51, 21, 86) | |
| CMYK | cmyk(41%, 76%, 0%, 66%) | — | |
| HSV | hsv(268, 76%, 34%) | — | |
| HWB | hwb(268 8% 66%) | color: hwb(268 8% 66%) | |
| OKLCH | oklch(0.2805 0.1112 300.42) | color: oklch(0.2805 0.1112 300.42) | |
| Lab | lab(15.02 29.62 -33.63) | color: lab(15.02 29.62 -33.63) | |
| LCH | lch(15.02 44.81 311.37) | color: lch(15.02 44.81 311.37) |
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)
#262646 — rgb(38, 38, 70)
Deuteranopia (Green-blind)
#282A43 — rgb(40, 42, 67)
Tritanopia (Blue-blind)
#323A37 — rgb(50, 58, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(268, 60%, 21%);
text
color: hsl(268, 60%, 21%);
border
border: 2px solid hsl(268, 60%, 21%);
gradient light
background: linear-gradient(to right, hsl(268, 60%, 41%), hsl(268, 60%, 21%));
gradient dark
background: linear-gradient(to right, hsl(268, 60%, 21%), hsl(268, 60%, 1%))
hex
background-color: #331556;
tailwind
bg-[hsl(268,60%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(268, 60%, 21%, 0.4);
css variable
--color-primary: hsl(268, 60%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(268, 60%, 21%)?
HEX: #331556 | RGB: rgb(51, 21, 86) | CMYK: 41%, 76%, 0%, 66% | HSV: 268°, 76%, 34%. Copy any format from the conversion table above.
What colors go well with #331556?
The complementary color is HSL(88, 60%, 21%). For a triadic harmony, use hues 268°, 28°, and 148°. For analogous combinations, try hues 238° and 298°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(268, 60%, 21%) in CSS?
As HSL: color: hsl(268, 60%, 21%); — As HEX: color: #331556; — As RGB: color: rgb(51, 21, 86); — Tailwind CSS: bg-[hsl(268,60%,21%)] — CSS variable: --color-primary: hsl(268, 60%, 21%);