HSL(275, 50%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(275,50%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(275, 50%, 24%) | color: hsl(275, 50%, 24%) | |
| HEX | #421F5C | color: #421F5C | |
| RGB | rgb(66, 31, 92) | color: rgb(66, 31, 92) | |
| CMYK | cmyk(28%, 66%, 0%, 64%) | — | |
| HSV | hsv(274, 66%, 36%) | — | |
| HWB | hwb(274 12% 64%) | color: hwb(274 12% 64%) | |
| OKLCH | oklch(0.3202 0.1074 307.89) | color: oklch(0.3202 0.1074 307.89) | |
| Lab | lab(19.68 29.3 -30.01) | color: lab(19.68 29.3 -30.01) | |
| LCH | lch(19.68 41.94 314.31) | color: lch(19.68 41.94 314.31) |
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)
#33334D — rgb(51, 51, 77)
Deuteranopia (Green-blind)
#35384A — rgb(53, 56, 74)
Tritanopia (Blue-blind)
#40423F — rgb(64, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(275, 50%, 24%);
text
color: hsl(275, 50%, 24%);
border
border: 2px solid hsl(275, 50%, 24%);
gradient light
background: linear-gradient(to right, hsl(275, 50%, 44%), hsl(275, 50%, 24%));
gradient dark
background: linear-gradient(to right, hsl(275, 50%, 24%), hsl(275, 50%, 4%))
hex
background-color: #421F5C;
tailwind
bg-[hsl(275,50%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(275, 50%, 24%, 0.4);
css variable
--color-primary: hsl(275, 50%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(275, 50%, 24%)?
HEX: #421F5C | RGB: rgb(66, 31, 92) | CMYK: 28%, 66%, 0%, 64% | HSV: 274°, 66%, 36%. Copy any format from the conversion table above.
What colors go well with #421F5C?
The complementary color is HSL(95, 50%, 24%). For a triadic harmony, use hues 275°, 35°, and 155°. For analogous combinations, try hues 245° and 305°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(275, 50%, 24%) in CSS?
As HSL: color: hsl(275, 50%, 24%); — As HEX: color: #421F5C; — As RGB: color: rgb(66, 31, 92); — Tailwind CSS: bg-[hsl(275,50%,24%)] — CSS variable: --color-primary: hsl(275, 50%, 24%);