HSL(262, 99%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(262,99%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 99%, 24%) | color: hsl(262, 99%, 24%) | |
| HEX | #2D017A | color: #2D017A | |
| RGB | rgb(45, 1, 122) | color: rgb(45, 1, 122) | |
| CMYK | cmyk(63%, 99%, 0%, 52%) | — | |
| HSV | hsv(262, 99%, 48%) | — | |
| HWB | hwb(262 0% 52%) | color: hwb(262 0% 52%) | |
| OKLCH | oklch(0.2931 0.1695 285.52) | color: oklch(0.2931 0.1695 285.52) | |
| Lab | lab(15.41 46.91 -56.72) | color: lab(15.41 46.91 -56.72) | |
| LCH | lch(15.41 73.61 309.59) | color: lch(15.41 73.61 309.59) |
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)
#1A1A5D — rgb(26, 26, 93)
Deuteranopia (Green-blind)
#1D2056 — rgb(29, 32, 86)
Tritanopia (Blue-blind)
#2B4641 — rgb(43, 70, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 99%, 24%);
text
color: hsl(262, 99%, 24%);
border
border: 2px solid hsl(262, 99%, 24%);
gradient light
background: linear-gradient(to right, hsl(262, 99%, 44%), hsl(262, 99%, 24%));
gradient dark
background: linear-gradient(to right, hsl(262, 99%, 24%), hsl(262, 99%, 4%))
hex
background-color: #2D017A;
tailwind
bg-[hsl(262,99%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 99%, 24%, 0.4);
css variable
--color-primary: hsl(262, 99%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 99%, 24%)?
HEX: #2D017A | RGB: rgb(45, 1, 122) | CMYK: 63%, 99%, 0%, 52% | HSV: 262°, 99%, 48%. Copy any format from the conversion table above.
What colors go well with #2D017A?
The complementary color is HSL(82, 99%, 24%). 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, 99%, 24%) in CSS?
As HSL: color: hsl(262, 99%, 24%); — As HEX: color: #2D017A; — As RGB: color: rgb(45, 1, 122); — Tailwind CSS: bg-[hsl(262,99%,24%)] — CSS variable: --color-primary: hsl(262, 99%, 24%);