HSL(261, 90%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(261,90%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(261, 90%, 21%) | color: hsl(261, 90%, 21%) | |
| HEX | #270566 | color: #270566 | |
| RGB | rgb(39, 5, 102) | color: rgb(39, 5, 102) | |
| CMYK | cmyk(62%, 95%, 0%, 60%) | — | |
| HSV | hsv(261, 95%, 40%) | — | |
| HWB | hwb(261 2% 60%) | color: hwb(261 2% 60%) | |
| OKLCH | oklch(0.2652 0.1456 287) | color: oklch(0.2652 0.1456 287) | |
| Lab | lab(12.6 39.64 -48.36) | color: lab(12.6 39.64 -48.36) | |
| LCH | lch(12.6 62.53 309.34) | color: lch(12.6 62.53 309.34) |
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)
#18184F — rgb(24, 24, 79)
Deuteranopia (Green-blind)
#1A1D49 — rgb(26, 29, 73)
Tritanopia (Blue-blind)
#253C38 — rgb(37, 60, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(261, 90%, 21%);
text
color: hsl(261, 90%, 21%);
border
border: 2px solid hsl(261, 90%, 21%);
gradient light
background: linear-gradient(to right, hsl(261, 90%, 41%), hsl(261, 90%, 21%));
gradient dark
background: linear-gradient(to right, hsl(261, 90%, 21%), hsl(261, 90%, 1%))
hex
background-color: #270566;
tailwind
bg-[hsl(261,90%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(261, 90%, 21%, 0.4);
css variable
--color-primary: hsl(261, 90%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(261, 90%, 21%)?
HEX: #270566 | RGB: rgb(39, 5, 102) | CMYK: 62%, 95%, 0%, 60% | HSV: 261°, 95%, 40%. Copy any format from the conversion table above.
What colors go well with #270566?
The complementary color is HSL(81, 90%, 21%). 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, 90%, 21%) in CSS?
As HSL: color: hsl(261, 90%, 21%); — As HEX: color: #270566; — As RGB: color: rgb(39, 5, 102); — Tailwind CSS: bg-[hsl(261,90%,21%)] — CSS variable: --color-primary: hsl(261, 90%, 21%);