HSL(255, 40%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(255,40%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(255, 40%, 28%) | color: hsl(255, 40%, 28%) | |
| HEX | #392B64 | color: #392B64 | |
| RGB | rgb(57, 43, 100) | color: rgb(57, 43, 100) | |
| CMYK | cmyk(43%, 57%, 0%, 61%) | — | |
| HSV | hsv(255, 57%, 39%) | — | |
| HWB | hwb(255 17% 61%) | color: hwb(255 17% 61%) | |
| OKLCH | oklch(0.3366 0.0966 291.68) | color: oklch(0.3366 0.0966 291.68) | |
| Lab | lab(22.01 21.64 -31.61) | color: lab(22.01 21.64 -31.61) | |
| LCH | lch(22.01 38.31 304.4) | color: lch(22.01 38.31 304.4) |
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)
#333356 — rgb(51, 51, 86)
Deuteranopia (Green-blind)
#343553 — rgb(52, 53, 83)
Tritanopia (Blue-blind)
#384B49 — rgb(56, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(255, 40%, 28%);
text
color: hsl(255, 40%, 28%);
border
border: 2px solid hsl(255, 40%, 28%);
gradient light
background: linear-gradient(to right, hsl(255, 40%, 48%), hsl(255, 40%, 28%));
gradient dark
background: linear-gradient(to right, hsl(255, 40%, 28%), hsl(255, 40%, 8%))
hex
background-color: #392B64;
tailwind
bg-[hsl(255,40%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(255, 40%, 28%, 0.4);
css variable
--color-primary: hsl(255, 40%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(255, 40%, 28%)?
HEX: #392B64 | RGB: rgb(57, 43, 100) | CMYK: 43%, 57%, 0%, 61% | HSV: 255°, 57%, 39%. Copy any format from the conversion table above.
What colors go well with #392B64?
The complementary color is HSL(75, 40%, 28%). For a triadic harmony, use hues 255°, 15°, and 135°. For analogous combinations, try hues 225° and 285°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(255, 40%, 28%) in CSS?
As HSL: color: hsl(255, 40%, 28%); — As HEX: color: #392B64; — As RGB: color: rgb(57, 43, 100); — Tailwind CSS: bg-[hsl(255,40%,28%)] — CSS variable: --color-primary: hsl(255, 40%, 28%);