HSL(257, 57%, 26%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,57%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 57%, 26%) | color: hsl(257, 57%, 26%) | |
| HEX | #321D68 | color: #321D68 | |
| RGB | rgb(50, 29, 104) | color: rgb(50, 29, 104) | |
| CMYK | cmyk(52%, 72%, 0%, 59%) | — | |
| HSV | hsv(257, 72%, 41%) | — | |
| HWB | hwb(257 11% 59%) | color: hwb(257 11% 59%) | |
| OKLCH | oklch(0.3077 0.1235 290.04) | color: oklch(0.3077 0.1235 290.04) | |
| Lab | lab(18.17 30.22 -40.48) | color: lab(18.17 30.22 -40.48) | |
| LCH | lch(18.17 50.52 306.74) | color: lch(18.17 50.52 306.74) |
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)
#292956 — rgb(41, 41, 86)
Deuteranopia (Green-blind)
#2A2C52 — rgb(42, 44, 82)
Tritanopia (Blue-blind)
#314844 — rgb(49, 72, 68)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 57%, 26%);
text
color: hsl(257, 57%, 26%);
border
border: 2px solid hsl(257, 57%, 26%);
gradient light
background: linear-gradient(to right, hsl(257, 57%, 46%), hsl(257, 57%, 26%));
gradient dark
background: linear-gradient(to right, hsl(257, 57%, 26%), hsl(257, 57%, 6%))
hex
background-color: #321D68;
tailwind
bg-[hsl(257,57%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 57%, 26%, 0.4);
css variable
--color-primary: hsl(257, 57%, 26%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 57%, 26%)?
HEX: #321D68 | RGB: rgb(50, 29, 104) | CMYK: 52%, 72%, 0%, 59% | HSV: 257°, 72%, 41%. Copy any format from the conversion table above.
What colors go well with #321D68?
The complementary color is HSL(77, 57%, 26%). 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, 57%, 26%) in CSS?
As HSL: color: hsl(257, 57%, 26%); — As HEX: color: #321D68; — As RGB: color: rgb(50, 29, 104); — Tailwind CSS: bg-[hsl(257,57%,26%)] — CSS variable: --color-primary: hsl(257, 57%, 26%);