HSL(262, 97%, 40%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,97%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 97%, 40%) | color: hsl(262, 97%, 40%) | |
| HEX | #4C03C9 | color: #4C03C9 | |
| RGB | rgb(76, 3, 201) | color: rgb(76, 3, 201) | |
| CMYK | cmyk(62%, 99%, 0%, 21%) | — | |
| HSV | hsv(262, 99%, 79%) | — | |
| HWB | hwb(262 1% 21%) | color: hwb(262 1% 21%) | |
| OKLCH | oklch(0.4196 0.2449 284.19) | color: oklch(0.4196 0.2449 284.19) | |
| Lab | lab(28.95 67.47 -82.42) | color: lab(28.95 67.47 -82.42) | |
| LCH | lch(28.95 106.51 309.3) | color: lch(28.95 106.51 309.3) |
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)
#2C2C99 — rgb(44, 44, 153)
Deuteranopia (Green-blind)
#31368E — rgb(49, 54, 142)
Tritanopia (Blue-blind)
#48736B — rgb(72, 115, 107)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 97%, 40%);
text
color: hsl(262, 97%, 40%);
border
border: 2px solid hsl(262, 97%, 40%);
gradient light
background: linear-gradient(to right, hsl(262, 97%, 60%), hsl(262, 97%, 40%));
gradient dark
background: linear-gradient(to right, hsl(262, 97%, 40%), hsl(262, 97%, 20%))
hex
background-color: #4C03C9;
tailwind
bg-[hsl(262,97%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 97%, 40%, 0.4);
css variable
--color-primary: hsl(262, 97%, 40%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 97%, 40%)?
HEX: #4C03C9 | RGB: rgb(76, 3, 201) | CMYK: 62%, 99%, 0%, 21% | HSV: 262°, 99%, 79%. Copy any format from the conversion table above.
What colors go well with #4C03C9?
The complementary color is HSL(82, 97%, 40%). 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, 97%, 40%) in CSS?
As HSL: color: hsl(262, 97%, 40%); — As HEX: color: #4C03C9; — As RGB: color: rgb(76, 3, 201); — Tailwind CSS: bg-[hsl(262,97%,40%)] — CSS variable: --color-primary: hsl(262, 97%, 40%);