HSL(278, 35%, 40%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(278,35%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(278, 35%, 40%) | color: hsl(278, 35%, 40%) | |
| HEX | #70428A | color: #70428A | |
| RGB | rgb(112, 66, 138) | color: rgb(112, 66, 138) | |
| CMYK | cmyk(19%, 52%, 0%, 46%) | — | |
| HSV | hsv(278, 52%, 54%) | — | |
| HWB | hwb(278 26% 46%) | color: hwb(278 26% 46%) | |
| OKLCH | oklch(0.465 0.1219 312.04) | color: oklch(0.465 0.1219 312.04) | |
| Lab | lab(36.32 33.52 -32.45) | color: lab(36.32 33.52 -32.45) | |
| LCH | lch(36.32 46.65 315.93) | color: lch(36.32 46.65 315.93) |
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)
#5C5C79 — rgb(92, 92, 121)
Deuteranopia (Green-blind)
#5F6274 — rgb(95, 98, 116)
Tritanopia (Blue-blind)
#6E6B68 — rgb(110, 107, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(278, 35%, 40%);
text
color: hsl(278, 35%, 40%);
border
border: 2px solid hsl(278, 35%, 40%);
gradient light
background: linear-gradient(to right, hsl(278, 35%, 60%), hsl(278, 35%, 40%));
gradient dark
background: linear-gradient(to right, hsl(278, 35%, 40%), hsl(278, 35%, 20%))
hex
background-color: #70428A;
tailwind
bg-[hsl(278,35%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(278, 35%, 40%, 0.4);
css variable
--color-primary: hsl(278, 35%, 40%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(278, 35%, 40%)?
HEX: #70428A | RGB: rgb(112, 66, 138) | CMYK: 19%, 52%, 0%, 46% | HSV: 278°, 52%, 54%. Copy any format from the conversion table above.
What colors go well with #70428A?
The complementary color is HSL(98, 35%, 40%). For a triadic harmony, use hues 278°, 38°, and 158°. For analogous combinations, try hues 248° and 308°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(278, 35%, 40%) in CSS?
As HSL: color: hsl(278, 35%, 40%); — As HEX: color: #70428A; — As RGB: color: rgb(112, 66, 138); — Tailwind CSS: bg-[hsl(278,35%,40%)] — CSS variable: --color-primary: hsl(278, 35%, 40%);