HSL(277, 46%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(277,46%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(277, 46%, 20%) | color: hsl(277, 46%, 20%) | |
| HEX | #381C4A | color: #381C4A | |
| RGB | rgb(56, 28, 74) | color: rgb(56, 28, 74) | |
| CMYK | cmyk(24%, 62%, 0%, 71%) | — | |
| HSV | hsv(277, 62%, 29%) | — | |
| HWB | hwb(277 11% 71%) | color: hwb(277 11% 71%) | |
| OKLCH | oklch(0.2887 0.0856 310.21) | color: oklch(0.2887 0.0856 310.21) | |
| Lab | lab(16.33 23.45 -23.3) | color: lab(16.33 23.45 -23.3) | |
| LCH | lch(16.33 33.06 315.18) | color: lch(16.33 33.06 315.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)
#2C2C3F — rgb(44, 44, 63)
Deuteranopia (Green-blind)
#2E303C — rgb(46, 48, 60)
Tritanopia (Blue-blind)
#373634 — rgb(55, 54, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(277, 46%, 20%);
text
color: hsl(277, 46%, 20%);
border
border: 2px solid hsl(277, 46%, 20%);
gradient light
background: linear-gradient(to right, hsl(277, 46%, 40%), hsl(277, 46%, 20%));
gradient dark
background: linear-gradient(to right, hsl(277, 46%, 20%), hsl(277, 46%, 0%))
hex
background-color: #381C4A;
tailwind
bg-[hsl(277,46%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(277, 46%, 20%, 0.4);
css variable
--color-primary: hsl(277, 46%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(277, 46%, 20%)?
HEX: #381C4A | RGB: rgb(56, 28, 74) | CMYK: 24%, 62%, 0%, 71% | HSV: 277°, 62%, 29%. Copy any format from the conversion table above.
What colors go well with #381C4A?
The complementary color is HSL(97, 46%, 20%). 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, 46%, 20%) in CSS?
As HSL: color: hsl(277, 46%, 20%); — As HEX: color: #381C4A; — As RGB: color: rgb(56, 28, 74); — Tailwind CSS: bg-[hsl(277,46%,20%)] — CSS variable: --color-primary: hsl(277, 46%, 20%);