HSL(258, 21%, 19%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(258,21%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(258, 21%, 19%) | color: hsl(258, 21%, 19%) | |
| HEX | #2C263B | color: #2C263B | |
| RGB | rgb(44, 38, 59) | color: rgb(44, 38, 59) | |
| CMYK | cmyk(25%, 36%, 0%, 77%) | — | |
| HSV | hsv(257, 36%, 23%) | — | |
| HWB | hwb(257 15% 77%) | color: hwb(257 15% 77%) | |
| OKLCH | oklch(0.285 0.0386 297.01) | color: oklch(0.285 0.0386 297.01) | |
| Lab | lab(16.69 8.22 -12.46) | color: lab(16.69 8.22 -12.46) | |
| LCH | lch(16.69 14.93 303.41) | color: lch(16.69 14.93 303.41) |
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)
#292936 — rgb(41, 41, 54)
Deuteranopia (Green-blind)
#2A2A35 — rgb(42, 42, 53)
Tritanopia (Blue-blind)
#2C3231 — rgb(44, 50, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(258, 21%, 19%);
text
color: hsl(258, 21%, 19%);
border
border: 2px solid hsl(258, 21%, 19%);
gradient light
background: linear-gradient(to right, hsl(258, 21%, 39%), hsl(258, 21%, 19%));
gradient dark
background: linear-gradient(to right, hsl(258, 21%, 19%), hsl(258, 21%, 0%))
hex
background-color: #2C263B;
tailwind
bg-[hsl(258,21%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(258, 21%, 19%, 0.4);
css variable
--color-primary: hsl(258, 21%, 19%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(258, 21%, 19%)?
HEX: #2C263B | RGB: rgb(44, 38, 59) | CMYK: 25%, 36%, 0%, 77% | HSV: 257°, 36%, 23%. Copy any format from the conversion table above.
What colors go well with #2C263B?
The complementary color is HSL(78, 21%, 19%). For a triadic harmony, use hues 258°, 18°, and 138°. For analogous combinations, try hues 228° and 288°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(258, 21%, 19%) in CSS?
As HSL: color: hsl(258, 21%, 19%); — As HEX: color: #2C263B; — As RGB: color: rgb(44, 38, 59); — Tailwind CSS: bg-[hsl(258,21%,19%)] — CSS variable: --color-primary: hsl(258, 21%, 19%);