HSL(267, 60%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(267,60%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(267, 60%, 24%) | color: hsl(267, 60%, 24%) | |
| HEX | #3A1862 | color: #3A1862 | |
| RGB | rgb(58, 24, 98) | color: rgb(58, 24, 98) | |
| CMYK | cmyk(41%, 76%, 0%, 62%) | — | |
| HSV | hsv(268, 76%, 38%) | — | |
| HWB | hwb(268 9% 62%) | color: hwb(268 9% 62%) | |
| OKLCH | oklch(0.3044 0.1232 300.06) | color: oklch(0.3044 0.1232 300.06) | |
| Lab | lab(17.62 32.91 -37.38) | color: lab(17.62 32.91 -37.38) | |
| LCH | lch(17.62 49.8 311.36) | color: lch(17.62 49.8 311.36) |
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)
#2B2B50 — rgb(43, 43, 80)
Deuteranopia (Green-blind)
#2D304C — rgb(45, 48, 76)
Tritanopia (Blue-blind)
#38423F — rgb(56, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(267, 60%, 24%);
text
color: hsl(267, 60%, 24%);
border
border: 2px solid hsl(267, 60%, 24%);
gradient light
background: linear-gradient(to right, hsl(267, 60%, 44%), hsl(267, 60%, 24%));
gradient dark
background: linear-gradient(to right, hsl(267, 60%, 24%), hsl(267, 60%, 4%))
hex
background-color: #3A1862;
tailwind
bg-[hsl(267,60%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(267, 60%, 24%, 0.4);
css variable
--color-primary: hsl(267, 60%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(267, 60%, 24%)?
HEX: #3A1862 | RGB: rgb(58, 24, 98) | CMYK: 41%, 76%, 0%, 62% | HSV: 268°, 76%, 38%. Copy any format from the conversion table above.
What colors go well with #3A1862?
The complementary color is HSL(87, 60%, 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, 60%, 24%) in CSS?
As HSL: color: hsl(267, 60%, 24%); — As HEX: color: #3A1862; — As RGB: color: rgb(58, 24, 98); — Tailwind CSS: bg-[hsl(267,60%,24%)] — CSS variable: --color-primary: hsl(267, 60%, 24%);