HSL(256, 72%, 23%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(256,72%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(256, 72%, 23%) | color: hsl(256, 72%, 23%) | |
| HEX | #271065 | color: #271065 | |
| RGB | rgb(39, 16, 101) | color: rgb(39, 16, 101) | |
| CMYK | cmyk(61%, 84%, 0%, 60%) | — | |
| HSV | hsv(256, 84%, 40%) | — | |
| HWB | hwb(256 6% 60%) | color: hwb(256 6% 60%) | |
| OKLCH | oklch(0.2749 0.1355 285.7) | color: oklch(0.2749 0.1355 285.7) | |
| Lab | lab(14.07 34.67 -45.28) | color: lab(14.07 34.67 -45.28) | |
| LCH | lch(14.07 57.03 307.44) | color: lch(14.07 57.03 307.44) |
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)
#1D1D50 — rgb(29, 29, 80)
Deuteranopia (Green-blind)
#1E204C — rgb(30, 32, 76)
Tritanopia (Blue-blind)
#26403D — rgb(38, 64, 61)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(256, 72%, 23%);
text
color: hsl(256, 72%, 23%);
border
border: 2px solid hsl(256, 72%, 23%);
gradient light
background: linear-gradient(to right, hsl(256, 72%, 43%), hsl(256, 72%, 23%));
gradient dark
background: linear-gradient(to right, hsl(256, 72%, 23%), hsl(256, 72%, 3%))
hex
background-color: #271065;
tailwind
bg-[hsl(256,72%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(256, 72%, 23%, 0.4);
css variable
--color-primary: hsl(256, 72%, 23%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(256, 72%, 23%)?
HEX: #271065 | RGB: rgb(39, 16, 101) | CMYK: 61%, 84%, 0%, 60% | HSV: 256°, 84%, 40%. Copy any format from the conversion table above.
What colors go well with #271065?
The complementary color is HSL(76, 72%, 23%). For a triadic harmony, use hues 256°, 16°, and 136°. For analogous combinations, try hues 226° and 286°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(256, 72%, 23%) in CSS?
As HSL: color: hsl(256, 72%, 23%); — As HEX: color: #271065; — As RGB: color: rgb(39, 16, 101); — Tailwind CSS: bg-[hsl(256,72%,23%)] — CSS variable: --color-primary: hsl(256, 72%, 23%);