HSL(257, 26%, 15%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,26%,15%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 26%, 15%) | color: hsl(257, 26%, 15%) | |
| HEX | #221C30 | color: #221C30 | |
| RGB | rgb(34, 28, 48) | color: rgb(34, 28, 48) | |
| CMYK | cmyk(29%, 42%, 0%, 81%) | — | |
| HSV | hsv(258, 42%, 19%) | — | |
| HWB | hwb(258 11% 81%) | color: hwb(258 11% 81%) | |
| OKLCH | oklch(0.2434 0.0382 297.28) | color: oklch(0.2434 0.0382 297.28) | |
| Lab | lab(11.85 8.32 -12.24) | color: lab(11.85 8.32 -12.24) | |
| LCH | lch(11.85 14.8 304.21) | color: lch(11.85 14.8 304.21) |
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)
#1F1F2B — rgb(31, 31, 43)
Deuteranopia (Green-blind)
#20202A — rgb(32, 32, 42)
Tritanopia (Blue-blind)
#222727 — rgb(34, 39, 39)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 26%, 15%);
text
color: hsl(257, 26%, 15%);
border
border: 2px solid hsl(257, 26%, 15%);
gradient light
background: linear-gradient(to right, hsl(257, 26%, 35%), hsl(257, 26%, 15%));
gradient dark
background: linear-gradient(to right, hsl(257, 26%, 15%), hsl(257, 26%, 0%))
hex
background-color: #221C30;
tailwind
bg-[hsl(257,26%,15%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 26%, 15%, 0.4);
css variable
--color-primary: hsl(257, 26%, 15%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 26%, 15%)?
HEX: #221C30 | RGB: rgb(34, 28, 48) | CMYK: 29%, 42%, 0%, 81% | HSV: 258°, 42%, 19%. Copy any format from the conversion table above.
What colors go well with #221C30?
The complementary color is HSL(77, 26%, 15%). For a triadic harmony, use hues 257°, 17°, and 137°. For analogous combinations, try hues 227° and 287°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(257, 26%, 15%) in CSS?
As HSL: color: hsl(257, 26%, 15%); — As HEX: color: #221C30; — As RGB: color: rgb(34, 28, 48); — Tailwind CSS: bg-[hsl(257,26%,15%)] — CSS variable: --color-primary: hsl(257, 26%, 15%);