HSL(262, 41%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,41%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 41%, 28%) | color: hsl(262, 41%, 28%) | |
| HEX | #402A65 | color: #402A65 | |
| RGB | rgb(64, 42, 101) | color: rgb(64, 42, 101) | |
| CMYK | cmyk(37%, 58%, 0%, 60%) | — | |
| HSV | hsv(262, 58%, 40%) | — | |
| HWB | hwb(262 17% 60%) | color: hwb(262 17% 60%) | |
| OKLCH | oklch(0.343 0.1004 298.13) | color: oklch(0.343 0.1004 298.13) | |
| Lab | lab(22.6 24.52 -31.27) | color: lab(22.6 24.52 -31.27) | |
| LCH | lch(22.6 39.74 308.1) | color: lch(22.6 39.74 308.1) |
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)
#363657 — rgb(54, 54, 87)
Deuteranopia (Green-blind)
#383953 — rgb(56, 57, 83)
Tritanopia (Blue-blind)
#3F4B49 — rgb(63, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 41%, 28%);
text
color: hsl(262, 41%, 28%);
border
border: 2px solid hsl(262, 41%, 28%);
gradient light
background: linear-gradient(to right, hsl(262, 41%, 48%), hsl(262, 41%, 28%));
gradient dark
background: linear-gradient(to right, hsl(262, 41%, 28%), hsl(262, 41%, 8%))
hex
background-color: #402A65;
tailwind
bg-[hsl(262,41%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 41%, 28%, 0.4);
css variable
--color-primary: hsl(262, 41%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 41%, 28%)?
HEX: #402A65 | RGB: rgb(64, 42, 101) | CMYK: 37%, 58%, 0%, 60% | HSV: 262°, 58%, 40%. Copy any format from the conversion table above.
What colors go well with #402A65?
The complementary color is HSL(82, 41%, 28%). 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%, 28%) in CSS?
As HSL: color: hsl(262, 41%, 28%); — As HEX: color: #402A65; — As RGB: color: rgb(64, 42, 101); — Tailwind CSS: bg-[hsl(262,41%,28%)] — CSS variable: --color-primary: hsl(262, 41%, 28%);