HSL(257, 55%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,55%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 55%, 24%) | color: hsl(257, 55%, 24%) | |
| HEX | #2F1C5F | color: #2F1C5F | |
| RGB | rgb(47, 28, 95) | color: rgb(47, 28, 95) | |
| CMYK | cmyk(51%, 71%, 0%, 63%) | — | |
| HSV | hsv(257, 71%, 37%) | — | |
| HWB | hwb(257 11% 63%) | color: hwb(257 11% 63%) | |
| OKLCH | oklch(0.2946 0.1127 290.88) | color: oklch(0.2946 0.1127 290.88) | |
| Lab | lab(16.8 27.34 -36.79) | color: lab(16.8 27.34 -36.79) | |
| LCH | lch(16.8 45.84 306.62) | color: lch(16.8 45.84 306.62) |
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)
#27274F — rgb(39, 39, 79)
Deuteranopia (Green-blind)
#28294B — rgb(40, 41, 75)
Tritanopia (Blue-blind)
#2E423F — rgb(46, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 55%, 24%);
text
color: hsl(257, 55%, 24%);
border
border: 2px solid hsl(257, 55%, 24%);
gradient light
background: linear-gradient(to right, hsl(257, 55%, 44%), hsl(257, 55%, 24%));
gradient dark
background: linear-gradient(to right, hsl(257, 55%, 24%), hsl(257, 55%, 4%))
hex
background-color: #2F1C5F;
tailwind
bg-[hsl(257,55%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 55%, 24%, 0.4);
css variable
--color-primary: hsl(257, 55%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 55%, 24%)?
HEX: #2F1C5F | RGB: rgb(47, 28, 95) | CMYK: 51%, 71%, 0%, 63% | HSV: 257°, 71%, 37%. Copy any format from the conversion table above.
What colors go well with #2F1C5F?
The complementary color is HSL(77, 55%, 24%). For a triadic harmony, use hues 257°, 17°, and 137°. For analogous combinations, try hues 227° and 287°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(257, 55%, 24%) in CSS?
As HSL: color: hsl(257, 55%, 24%); — As HEX: color: #2F1C5F; — As RGB: color: rgb(47, 28, 95); — Tailwind CSS: bg-[hsl(257,55%,24%)] — CSS variable: --color-primary: hsl(257, 55%, 24%);