HSL(256, 70%, 23%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(256,70%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(256, 70%, 23%) | color: hsl(256, 70%, 23%) | |
| HEX | #271264 | color: #271264 | |
| RGB | rgb(39, 18, 100) | color: rgb(39, 18, 100) | |
| CMYK | cmyk(61%, 82%, 0%, 61%) | — | |
| HSV | hsv(255, 82%, 39%) | — | |
| HWB | hwb(255 7% 61%) | color: hwb(255 7% 61%) | |
| OKLCH | oklch(0.2763 0.1322 285.6) | color: oklch(0.2763 0.1322 285.6) | |
| Lab | lab(14.31 33.33 -44.22) | color: lab(14.31 33.33 -44.22) | |
| LCH | lch(14.31 55.37 307.01) | color: lch(14.31 55.37 307.01) |
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)
#1E1E50 — rgb(30, 30, 80)
Deuteranopia (Green-blind)
#1F214B — rgb(31, 33, 75)
Tritanopia (Blue-blind)
#26403D — rgb(38, 64, 61)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(256, 70%, 23%);
text
color: hsl(256, 70%, 23%);
border
border: 2px solid hsl(256, 70%, 23%);
gradient light
background: linear-gradient(to right, hsl(256, 70%, 43%), hsl(256, 70%, 23%));
gradient dark
background: linear-gradient(to right, hsl(256, 70%, 23%), hsl(256, 70%, 3%))
hex
background-color: #271264;
tailwind
bg-[hsl(256,70%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(256, 70%, 23%, 0.4);
css variable
--color-primary: hsl(256, 70%, 23%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(256, 70%, 23%)?
HEX: #271264 | RGB: rgb(39, 18, 100) | CMYK: 61%, 82%, 0%, 61% | HSV: 255°, 82%, 39%. Copy any format from the conversion table above.
What colors go well with #271264?
The complementary color is HSL(76, 70%, 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, 70%, 23%) in CSS?
As HSL: color: hsl(256, 70%, 23%); — As HEX: color: #271264; — As RGB: color: rgb(39, 18, 100); — Tailwind CSS: bg-[hsl(256,70%,23%)] — CSS variable: --color-primary: hsl(256, 70%, 23%);