HSL(261, 71%, 32%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(261,71%,32%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(261, 71%, 32%) | color: hsl(261, 71%, 32%) | |
| HEX | #40188C | color: #40188C | |
| RGB | rgb(64, 24, 140) | color: rgb(64, 24, 140) | |
| CMYK | cmyk(54%, 83%, 0%, 45%) | — | |
| HSV | hsv(261, 83%, 55%) | — | |
| HWB | hwb(261 9% 45%) | color: hwb(261 9% 45%) | |
| OKLCH | oklch(0.3522 0.1727 290.02) | color: oklch(0.3522 0.1727 290.02) | |
| Lab | lab(22.43 45.65 -56.42) | color: lab(22.43 45.65 -56.42) | |
| LCH | lch(22.43 72.58 308.98) | color: lch(22.43 72.58 308.98) |
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)
#2F2E70 — rgb(47, 46, 112)
Deuteranopia (Green-blind)
#313469 — rgb(49, 52, 105)
Tritanopia (Blue-blind)
#3E5A55 — rgb(62, 90, 85)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(261, 71%, 32%);
text
color: hsl(261, 71%, 32%);
border
border: 2px solid hsl(261, 71%, 32%);
gradient light
background: linear-gradient(to right, hsl(261, 71%, 52%), hsl(261, 71%, 32%));
gradient dark
background: linear-gradient(to right, hsl(261, 71%, 32%), hsl(261, 71%, 12%))
hex
background-color: #40188C;
tailwind
bg-[hsl(261,71%,32%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(261, 71%, 32%, 0.4);
css variable
--color-primary: hsl(261, 71%, 32%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(261, 71%, 32%)?
HEX: #40188C | RGB: rgb(64, 24, 140) | CMYK: 54%, 83%, 0%, 45% | HSV: 261°, 83%, 55%. Copy any format from the conversion table above.
What colors go well with #40188C?
The complementary color is HSL(81, 71%, 32%). For a triadic harmony, use hues 261°, 21°, and 141°. For analogous combinations, try hues 231° and 291°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(261, 71%, 32%) in CSS?
As HSL: color: hsl(261, 71%, 32%); — As HEX: color: #40188C; — As RGB: color: rgb(64, 24, 140); — Tailwind CSS: bg-[hsl(261,71%,32%)] — CSS variable: --color-primary: hsl(261, 71%, 32%);