HSL(264, 52%, 22%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(264,52%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(264, 52%, 22%) | color: hsl(264, 52%, 22%) | |
| HEX | #321B55 | color: #321B55 | |
| RGB | rgb(50, 27, 85) | color: rgb(50, 27, 85) | |
| CMYK | cmyk(41%, 68%, 0%, 67%) | — | |
| HSV | hsv(264, 68%, 33%) | — | |
| HWB | hwb(264 11% 67%) | color: hwb(264 11% 67%) | |
| OKLCH | oklch(0.2877 0.1007 298.03) | color: oklch(0.2877 0.1007 298.03) | |
| Lab | lab(16.09 25.54 -31.22) | color: lab(16.09 25.54 -31.22) | |
| LCH | lch(16.09 40.34 309.29) | color: lch(16.09 40.34 309.29) |
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)
#282847 — rgb(40, 40, 71)
Deuteranopia (Green-blind)
#292B44 — rgb(41, 43, 68)
Tritanopia (Blue-blind)
#313C39 — rgb(49, 60, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(264, 52%, 22%);
text
color: hsl(264, 52%, 22%);
border
border: 2px solid hsl(264, 52%, 22%);
gradient light
background: linear-gradient(to right, hsl(264, 52%, 42%), hsl(264, 52%, 22%));
gradient dark
background: linear-gradient(to right, hsl(264, 52%, 22%), hsl(264, 52%, 2%))
hex
background-color: #321B55;
tailwind
bg-[hsl(264,52%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(264, 52%, 22%, 0.4);
css variable
--color-primary: hsl(264, 52%, 22%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(264, 52%, 22%)?
HEX: #321B55 | RGB: rgb(50, 27, 85) | CMYK: 41%, 68%, 0%, 67% | HSV: 264°, 68%, 33%. Copy any format from the conversion table above.
What colors go well with #321B55?
The complementary color is HSL(84, 52%, 22%). For a triadic harmony, use hues 264°, 24°, and 144°. For analogous combinations, try hues 234° and 294°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(264, 52%, 22%) in CSS?
As HSL: color: hsl(264, 52%, 22%); — As HEX: color: #321B55; — As RGB: color: rgb(50, 27, 85); — Tailwind CSS: bg-[hsl(264,52%,22%)] — CSS variable: --color-primary: hsl(264, 52%, 22%);