HSL(255, 100%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(255,100%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(255, 100%, 21%) | color: hsl(255, 100%, 21%) | |
| HEX | #1B006B | color: #1B006B | |
| RGB | rgb(27, 0, 107) | color: rgb(27, 0, 107) | |
| CMYK | cmyk(75%, 100%, 0%, 58%) | — | |
| HSV | hsv(255, 100%, 42%) | — | |
| HWB | hwb(255 0% 58%) | color: hwb(255 0% 58%) | |
| OKLCH | oklch(0.2549 0.157 277.56) | color: oklch(0.2549 0.157 277.56) | |
| Lab | lab(11.24 42.44 -53.97) | color: lab(11.24 42.44 -53.97) | |
| LCH | lch(11.24 68.66 308.18) | color: lch(11.24 68.66 308.18) |
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)
#0F0F51 — rgb(15, 15, 81)
Deuteranopia (Green-blind)
#11134B — rgb(17, 19, 75)
Tritanopia (Blue-blind)
#1A3D38 — rgb(26, 61, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(255, 100%, 21%);
text
color: hsl(255, 100%, 21%);
border
border: 2px solid hsl(255, 100%, 21%);
gradient light
background: linear-gradient(to right, hsl(255, 100%, 41%), hsl(255, 100%, 21%));
gradient dark
background: linear-gradient(to right, hsl(255, 100%, 21%), hsl(255, 100%, 1%))
hex
background-color: #1B006B;
tailwind
bg-[hsl(255,100%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(255, 100%, 21%, 0.4);
css variable
--color-primary: hsl(255, 100%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(255, 100%, 21%)?
HEX: #1B006B | RGB: rgb(27, 0, 107) | CMYK: 75%, 100%, 0%, 58% | HSV: 255°, 100%, 42%. Copy any format from the conversion table above.
What colors go well with #1B006B?
The complementary color is HSL(75, 100%, 21%). For a triadic harmony, use hues 255°, 15°, and 135°. For analogous combinations, try hues 225° and 285°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(255, 100%, 21%) in CSS?
As HSL: color: hsl(255, 100%, 21%); — As HEX: color: #1B006B; — As RGB: color: rgb(27, 0, 107); — Tailwind CSS: bg-[hsl(255,100%,21%)] — CSS variable: --color-primary: hsl(255, 100%, 21%);