HSL(264, 40%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(264,40%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(264, 40%, 24%) | color: hsl(264, 40%, 24%) | |
| HEX | #382556 | color: #382556 | |
| RGB | rgb(56, 37, 86) | color: rgb(56, 37, 86) | |
| CMYK | cmyk(35%, 57%, 0%, 66%) | — | |
| HSV | hsv(263, 57%, 34%) | — | |
| HWB | hwb(263 15% 66%) | color: hwb(263 15% 66%) | |
| OKLCH | oklch(0.3137 0.086 299.3) | color: oklch(0.3137 0.086 299.3) | |
| Lab | lab(19.37 21.03 -26.58) | color: lab(19.37 21.03 -26.58) | |
| LCH | lch(19.37 33.89 308.35) | color: lch(19.37 33.89 308.35) |
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)
#30304A — rgb(48, 48, 74)
Deuteranopia (Green-blind)
#313247 — rgb(49, 50, 71)
Tritanopia (Blue-blind)
#37413F — rgb(55, 65, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(264, 40%, 24%);
text
color: hsl(264, 40%, 24%);
border
border: 2px solid hsl(264, 40%, 24%);
gradient light
background: linear-gradient(to right, hsl(264, 40%, 44%), hsl(264, 40%, 24%));
gradient dark
background: linear-gradient(to right, hsl(264, 40%, 24%), hsl(264, 40%, 4%))
hex
background-color: #382556;
tailwind
bg-[hsl(264,40%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(264, 40%, 24%, 0.4);
css variable
--color-primary: hsl(264, 40%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(264, 40%, 24%)?
HEX: #382556 | RGB: rgb(56, 37, 86) | CMYK: 35%, 57%, 0%, 66% | HSV: 263°, 57%, 34%. Copy any format from the conversion table above.
What colors go well with #382556?
The complementary color is HSL(84, 40%, 24%). 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, 40%, 24%) in CSS?
As HSL: color: hsl(264, 40%, 24%); — As HEX: color: #382556; — As RGB: color: rgb(56, 37, 86); — Tailwind CSS: bg-[hsl(264,40%,24%)] — CSS variable: --color-primary: hsl(264, 40%, 24%);