HSL(277, 35%, 17%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(277,35%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(277, 35%, 17%) | color: hsl(277, 35%, 17%) | |
| HEX | #2F1C3B | color: #2F1C3B | |
| RGB | rgb(47, 28, 59) | color: rgb(47, 28, 59) | |
| CMYK | cmyk(20%, 53%, 0%, 77%) | — | |
| HSV | hsv(277, 53%, 23%) | — | |
| HWB | hwb(277 11% 77%) | color: hwb(277 11% 77%) | |
| OKLCH | oklch(0.2664 0.0607 311.13) | color: oklch(0.2664 0.0607 311.13) | |
| Lab | lab(14.12 16.39 -16.44) | color: lab(14.12 16.39 -16.44) | |
| LCH | lch(14.12 23.21 314.91) | color: lch(14.12 23.21 314.91) |
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)
#272733 — rgb(39, 39, 51)
Deuteranopia (Green-blind)
#282932 — rgb(40, 41, 50)
Tritanopia (Blue-blind)
#2E2E2C — rgb(46, 46, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(277, 35%, 17%);
text
color: hsl(277, 35%, 17%);
border
border: 2px solid hsl(277, 35%, 17%);
gradient light
background: linear-gradient(to right, hsl(277, 35%, 37%), hsl(277, 35%, 17%));
gradient dark
background: linear-gradient(to right, hsl(277, 35%, 17%), hsl(277, 35%, 0%))
hex
background-color: #2F1C3B;
tailwind
bg-[hsl(277,35%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(277, 35%, 17%, 0.4);
css variable
--color-primary: hsl(277, 35%, 17%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(277, 35%, 17%)?
HEX: #2F1C3B | RGB: rgb(47, 28, 59) | CMYK: 20%, 53%, 0%, 77% | HSV: 277°, 53%, 23%. Copy any format from the conversion table above.
What colors go well with #2F1C3B?
The complementary color is HSL(97, 35%, 17%). For a triadic harmony, use hues 277°, 37°, and 157°. For analogous combinations, try hues 247° and 307°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(277, 35%, 17%) in CSS?
As HSL: color: hsl(277, 35%, 17%); — As HEX: color: #2F1C3B; — As RGB: color: rgb(47, 28, 59); — Tailwind CSS: bg-[hsl(277,35%,17%)] — CSS variable: --color-primary: hsl(277, 35%, 17%);