HSL(257, 50%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,50%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 50%, 24%) | color: hsl(257, 50%, 24%) | |
| HEX | #301F5C | color: #301F5C | |
| RGB | rgb(48, 31, 92) | color: rgb(48, 31, 92) | |
| CMYK | cmyk(48%, 66%, 0%, 64%) | — | |
| HSV | hsv(257, 66%, 36%) | — | |
| HWB | hwb(257 12% 64%) | color: hwb(257 12% 64%) | |
| OKLCH | oklch(0.2982 0.104 291.67) | color: oklch(0.2982 0.104 291.67) | |
| Lab | lab(17.37 24.7 -33.86) | color: lab(17.37 24.7 -33.86) | |
| LCH | lch(17.37 41.91 306.11) | color: lch(17.37 41.91 306.11) |
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)
#29284D — rgb(41, 40, 77)
Deuteranopia (Green-blind)
#2A2B4A — rgb(42, 43, 74)
Tritanopia (Blue-blind)
#2F423F — rgb(47, 66, 63)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 50%, 24%);
text
color: hsl(257, 50%, 24%);
border
border: 2px solid hsl(257, 50%, 24%);
gradient light
background: linear-gradient(to right, hsl(257, 50%, 44%), hsl(257, 50%, 24%));
gradient dark
background: linear-gradient(to right, hsl(257, 50%, 24%), hsl(257, 50%, 4%))
hex
background-color: #301F5C;
tailwind
bg-[hsl(257,50%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 50%, 24%, 0.4);
css variable
--color-primary: hsl(257, 50%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 50%, 24%)?
HEX: #301F5C | RGB: rgb(48, 31, 92) | CMYK: 48%, 66%, 0%, 64% | HSV: 257°, 66%, 36%. Copy any format from the conversion table above.
What colors go well with #301F5C?
The complementary color is HSL(77, 50%, 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, 50%, 24%) in CSS?
As HSL: color: hsl(257, 50%, 24%); — As HEX: color: #301F5C; — As RGB: color: rgb(48, 31, 92); — Tailwind CSS: bg-[hsl(257,50%,24%)] — CSS variable: --color-primary: hsl(257, 50%, 24%);