HSL(271, 85%, 25%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(271,85%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(271, 85%, 25%) | color: hsl(271, 85%, 25%) | |
| HEX | #420A76 | color: #420A76 | |
| RGB | rgb(66, 10, 118) | color: rgb(66, 10, 118) | |
| CMYK | cmyk(44%, 92%, 0%, 54%) | — | |
| HSV | hsv(271, 92%, 46%) | — | |
| HWB | hwb(271 4% 54%) | color: hwb(271 4% 54%) | |
| OKLCH | oklch(0.3205 0.1603 299.81) | color: oklch(0.3205 0.1603 299.81) | |
| Lab | lab(18.73 45.15 -48.57) | color: lab(18.73 45.15 -48.57) | |
| LCH | lch(18.73 66.31 312.91) | color: lch(18.73 66.31 312.91) |
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)
#2A295C — rgb(42, 41, 92)
Deuteranopia (Green-blind)
#2D3156 — rgb(45, 49, 86)
Tritanopia (Blue-blind)
#3F4743 — rgb(63, 71, 67)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(271, 85%, 25%);
text
color: hsl(271, 85%, 25%);
border
border: 2px solid hsl(271, 85%, 25%);
gradient light
background: linear-gradient(to right, hsl(271, 85%, 45%), hsl(271, 85%, 25%));
gradient dark
background: linear-gradient(to right, hsl(271, 85%, 25%), hsl(271, 85%, 5%))
hex
background-color: #420A76;
tailwind
bg-[hsl(271,85%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(271, 85%, 25%, 0.4);
css variable
--color-primary: hsl(271, 85%, 25%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(271, 85%, 25%)?
HEX: #420A76 | RGB: rgb(66, 10, 118) | CMYK: 44%, 92%, 0%, 54% | HSV: 271°, 92%, 46%. Copy any format from the conversion table above.
What colors go well with #420A76?
The complementary color is HSL(91, 85%, 25%). For a triadic harmony, use hues 271°, 31°, and 151°. For analogous combinations, try hues 241° and 301°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(271, 85%, 25%) in CSS?
As HSL: color: hsl(271, 85%, 25%); — As HEX: color: #420A76; — As RGB: color: rgb(66, 10, 118); — Tailwind CSS: bg-[hsl(271,85%,25%)] — CSS variable: --color-primary: hsl(271, 85%, 25%);