HSL(257, 37%, 16%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,37%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 37%, 16%) | color: hsl(257, 37%, 16%) | |
| HEX | #221A38 | color: #221A38 | |
| RGB | rgb(34, 26, 56) | color: rgb(34, 26, 56) | |
| CMYK | cmyk(39%, 54%, 0%, 78%) | — | |
| HSV | hsv(256, 54%, 22%) | — | |
| HWB | hwb(256 10% 78%) | color: hwb(256 10% 78%) | |
| OKLCH | oklch(0.2439 0.0561 294.13) | color: oklch(0.2439 0.0561 294.13) | |
| Lab | lab(11.72 12.37 -18.21) | color: lab(11.72 12.37 -18.21) | |
| LCH | lch(11.72 22.01 304.19) | color: lch(11.72 22.01 304.19) |
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)
#1F1E31 — rgb(31, 30, 49)
Deuteranopia (Green-blind)
#1F202F — rgb(31, 32, 47)
Tritanopia (Blue-blind)
#222B2A — rgb(34, 43, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 37%, 16%);
text
color: hsl(257, 37%, 16%);
border
border: 2px solid hsl(257, 37%, 16%);
gradient light
background: linear-gradient(to right, hsl(257, 37%, 36%), hsl(257, 37%, 16%));
gradient dark
background: linear-gradient(to right, hsl(257, 37%, 16%), hsl(257, 37%, 0%))
hex
background-color: #221A38;
tailwind
bg-[hsl(257,37%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 37%, 16%, 0.4);
css variable
--color-primary: hsl(257, 37%, 16%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 37%, 16%)?
HEX: #221A38 | RGB: rgb(34, 26, 56) | CMYK: 39%, 54%, 0%, 78% | HSV: 256°, 54%, 22%. Copy any format from the conversion table above.
What colors go well with #221A38?
The complementary color is HSL(77, 37%, 16%). 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, 37%, 16%) in CSS?
As HSL: color: hsl(257, 37%, 16%); — As HEX: color: #221A38; — As RGB: color: rgb(34, 26, 56); — Tailwind CSS: bg-[hsl(257,37%,16%)] — CSS variable: --color-primary: hsl(257, 37%, 16%);