HSL(262, 41%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,41%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 41%, 20%) | color: hsl(262, 41%, 20%) | |
| HEX | #2D1E48 | color: #2D1E48 | |
| RGB | rgb(45, 30, 72) | color: rgb(45, 30, 72) | |
| CMYK | cmyk(38%, 58%, 0%, 72%) | — | |
| HSV | hsv(261, 58%, 28%) | — | |
| HWB | hwb(261 12% 72%) | color: hwb(261 12% 72%) | |
| OKLCH | oklch(0.2769 0.0758 297.73) | color: oklch(0.2769 0.0758 297.73) | |
| Lab | lab(15.25 18.18 -23.74) | color: lab(15.25 18.18 -23.74) | |
| LCH | lch(15.25 29.9 307.44) | color: lch(15.25 29.9 307.44) |
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)
#27263E — rgb(39, 38, 62)
Deuteranopia (Green-blind)
#27293B — rgb(39, 41, 59)
Tritanopia (Blue-blind)
#2C3634 — rgb(44, 54, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 41%, 20%);
text
color: hsl(262, 41%, 20%);
border
border: 2px solid hsl(262, 41%, 20%);
gradient light
background: linear-gradient(to right, hsl(262, 41%, 40%), hsl(262, 41%, 20%));
gradient dark
background: linear-gradient(to right, hsl(262, 41%, 20%), hsl(262, 41%, 0%))
hex
background-color: #2D1E48;
tailwind
bg-[hsl(262,41%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 41%, 20%, 0.4);
css variable
--color-primary: hsl(262, 41%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 41%, 20%)?
HEX: #2D1E48 | RGB: rgb(45, 30, 72) | CMYK: 38%, 58%, 0%, 72% | HSV: 261°, 58%, 28%. Copy any format from the conversion table above.
What colors go well with #2D1E48?
The complementary color is HSL(82, 41%, 20%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 41%, 20%) in CSS?
As HSL: color: hsl(262, 41%, 20%); — As HEX: color: #2D1E48; — As RGB: color: rgb(45, 30, 72); — Tailwind CSS: bg-[hsl(262,41%,20%)] — CSS variable: --color-primary: hsl(262, 41%, 20%);