HSL(259, 20%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(259,20%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(259, 20%, 20%) | color: hsl(259, 20%, 20%) | |
| HEX | #2F293D | color: #2F293D | |
| RGB | rgb(47, 41, 61) | color: rgb(47, 41, 61) | |
| CMYK | cmyk(23%, 33%, 0%, 76%) | — | |
| HSV | hsv(258, 33%, 24%) | — | |
| HWB | hwb(258 16% 76%) | color: hwb(258 16% 76%) | |
| OKLCH | oklch(0.2965 0.0365 297.91) | color: oklch(0.2965 0.0365 297.91) | |
| Lab | lab(18.04 7.83 -11.73) | color: lab(18.04 7.83 -11.73) | |
| LCH | lch(18.04 14.1 303.72) | color: lch(18.04 14.1 303.72) |
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)
#2C2C38 — rgb(44, 44, 56)
Deuteranopia (Green-blind)
#2D2D37 — rgb(45, 45, 55)
Tritanopia (Blue-blind)
#2F3434 — rgb(47, 52, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(259, 20%, 20%);
text
color: hsl(259, 20%, 20%);
border
border: 2px solid hsl(259, 20%, 20%);
gradient light
background: linear-gradient(to right, hsl(259, 20%, 40%), hsl(259, 20%, 20%));
gradient dark
background: linear-gradient(to right, hsl(259, 20%, 20%), hsl(259, 20%, 0%))
hex
background-color: #2F293D;
tailwind
bg-[hsl(259,20%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(259, 20%, 20%, 0.4);
css variable
--color-primary: hsl(259, 20%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(259, 20%, 20%)?
HEX: #2F293D | RGB: rgb(47, 41, 61) | CMYK: 23%, 33%, 0%, 76% | HSV: 258°, 33%, 24%. Copy any format from the conversion table above.
What colors go well with #2F293D?
The complementary color is HSL(79, 20%, 20%). For a triadic harmony, use hues 259°, 19°, and 139°. For analogous combinations, try hues 229° and 289°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(259, 20%, 20%) in CSS?
As HSL: color: hsl(259, 20%, 20%); — As HEX: color: #2F293D; — As RGB: color: rgb(47, 41, 61); — Tailwind CSS: bg-[hsl(259,20%,20%)] — CSS variable: --color-primary: hsl(259, 20%, 20%);