HSL(257, 28%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,28%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 28%, 28%) | color: hsl(257, 28%, 28%) | |
| HEX | #3F335B | color: #3F335B | |
| RGB | rgb(63, 51, 91) | color: rgb(63, 51, 91) | |
| CMYK | cmyk(31%, 44%, 0%, 64%) | — | |
| HSV | hsv(258, 44%, 36%) | — | |
| HWB | hwb(258 20% 64%) | color: hwb(258 20% 64%) | |
| OKLCH | oklch(0.3532 0.0691 296.52) | color: oklch(0.3532 0.0691 296.52) | |
| Lab | lab(24.26 15.33 -22.11) | color: lab(24.26 15.33 -22.11) | |
| LCH | lch(24.26 26.9 304.74) | color: lch(24.26 26.9 304.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)
#3A3A51 — rgb(58, 58, 81)
Deuteranopia (Green-blind)
#3B3B4F — rgb(59, 59, 79)
Tritanopia (Blue-blind)
#3E4A48 — rgb(62, 74, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 28%, 28%);
text
color: hsl(257, 28%, 28%);
border
border: 2px solid hsl(257, 28%, 28%);
gradient light
background: linear-gradient(to right, hsl(257, 28%, 48%), hsl(257, 28%, 28%));
gradient dark
background: linear-gradient(to right, hsl(257, 28%, 28%), hsl(257, 28%, 8%))
hex
background-color: #3F335B;
tailwind
bg-[hsl(257,28%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 28%, 28%, 0.4);
css variable
--color-primary: hsl(257, 28%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 28%, 28%)?
HEX: #3F335B | RGB: rgb(63, 51, 91) | CMYK: 31%, 44%, 0%, 64% | HSV: 258°, 44%, 36%. Copy any format from the conversion table above.
What colors go well with #3F335B?
The complementary color is HSL(77, 28%, 28%). 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, 28%, 28%) in CSS?
As HSL: color: hsl(257, 28%, 28%); — As HEX: color: #3F335B; — As RGB: color: rgb(63, 51, 91); — Tailwind CSS: bg-[hsl(257,28%,28%)] — CSS variable: --color-primary: hsl(257, 28%, 28%);