HSL(267, 40%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(267,40%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(267, 40%, 24%) | color: hsl(267, 40%, 24%) | |
| HEX | #3B2556 | color: #3B2556 | |
| RGB | rgb(59, 37, 86) | color: rgb(59, 37, 86) | |
| CMYK | cmyk(31%, 57%, 0%, 66%) | — | |
| HSV | hsv(267, 57%, 34%) | — | |
| HWB | hwb(267 15% 66%) | color: hwb(267 15% 66%) | |
| OKLCH | oklch(0.3172 0.0867 302.47) | color: oklch(0.3172 0.0867 302.47) | |
| Lab | lab(19.74 21.93 -25.98) | color: lab(19.74 21.93 -25.98) | |
| LCH | lch(19.74 34 310.17) | color: lch(19.74 34 310.17) |
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)
#31314A — rgb(49, 49, 74)
Deuteranopia (Green-blind)
#333447 — rgb(51, 52, 71)
Tritanopia (Blue-blind)
#3A413F — rgb(58, 65, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(267, 40%, 24%);
text
color: hsl(267, 40%, 24%);
border
border: 2px solid hsl(267, 40%, 24%);
gradient light
background: linear-gradient(to right, hsl(267, 40%, 44%), hsl(267, 40%, 24%));
gradient dark
background: linear-gradient(to right, hsl(267, 40%, 24%), hsl(267, 40%, 4%))
hex
background-color: #3B2556;
tailwind
bg-[hsl(267,40%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(267, 40%, 24%, 0.4);
css variable
--color-primary: hsl(267, 40%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(267, 40%, 24%)?
HEX: #3B2556 | RGB: rgb(59, 37, 86) | CMYK: 31%, 57%, 0%, 66% | HSV: 267°, 57%, 34%. Copy any format from the conversion table above.
What colors go well with #3B2556?
The complementary color is HSL(87, 40%, 24%). For a triadic harmony, use hues 267°, 27°, and 147°. For analogous combinations, try hues 237° and 297°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(267, 40%, 24%) in CSS?
As HSL: color: hsl(267, 40%, 24%); — As HEX: color: #3B2556; — As RGB: color: rgb(59, 37, 86); — Tailwind CSS: bg-[hsl(267,40%,24%)] — CSS variable: --color-primary: hsl(267, 40%, 24%);