HSL(257, 61%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,61%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 61%, 24%) | color: hsl(257, 61%, 24%) | |
| HEX | #2D1863 | color: #2D1863 | |
| RGB | rgb(45, 24, 99) | color: rgb(45, 24, 99) | |
| CMYK | cmyk(55%, 76%, 0%, 61%) | — | |
| HSV | hsv(257, 76%, 39%) | — | |
| HWB | hwb(257 9% 61%) | color: hwb(257 9% 61%) | |
| OKLCH | oklch(0.2899 0.1236 289.14) | color: oklch(0.2899 0.1236 289.14) | |
| Lab | lab(16.06 30.64 -40.65) | color: lab(16.06 30.64 -40.65) | |
| LCH | lch(16.06 50.9 307.01) | color: lch(16.06 50.9 307.01) |
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)
#242451 — rgb(36, 36, 81)
Deuteranopia (Green-blind)
#25274D — rgb(37, 39, 77)
Tritanopia (Blue-blind)
#2C433F — rgb(44, 67, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 61%, 24%);
text
color: hsl(257, 61%, 24%);
border
border: 2px solid hsl(257, 61%, 24%);
gradient light
background: linear-gradient(to right, hsl(257, 61%, 44%), hsl(257, 61%, 24%));
gradient dark
background: linear-gradient(to right, hsl(257, 61%, 24%), hsl(257, 61%, 4%))
hex
background-color: #2D1863;
tailwind
bg-[hsl(257,61%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 61%, 24%, 0.4);
css variable
--color-primary: hsl(257, 61%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 61%, 24%)?
HEX: #2D1863 | RGB: rgb(45, 24, 99) | CMYK: 55%, 76%, 0%, 61% | HSV: 257°, 76%, 39%. Copy any format from the conversion table above.
What colors go well with #2D1863?
The complementary color is HSL(77, 61%, 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, 61%, 24%) in CSS?
As HSL: color: hsl(257, 61%, 24%); — As HEX: color: #2D1863; — As RGB: color: rgb(45, 24, 99); — Tailwind CSS: bg-[hsl(257,61%,24%)] — CSS variable: --color-primary: hsl(257, 61%, 24%);