HSL(257, 57%, 16%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,57%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 57%, 16%) | color: hsl(257, 57%, 16%) | |
| HEX | #1F1240 | color: #1F1240 | |
| RGB | rgb(31, 18, 64) | color: rgb(31, 18, 64) | |
| CMYK | cmyk(52%, 72%, 0%, 75%) | — | |
| HSV | hsv(257, 72%, 25%) | — | |
| HWB | hwb(257 7% 75%) | color: hwb(257 7% 75%) | |
| OKLCH | oklch(0.2305 0.0832 291.51) | color: oklch(0.2305 0.0832 291.51) | |
| Lab | lab(9.75 19.93 -27.08) | color: lab(9.75 19.93 -27.08) | |
| LCH | lch(9.75 33.62 306.35) | color: lch(9.75 33.62 306.35) |
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)
#191935 — rgb(25, 25, 53)
Deuteranopia (Green-blind)
#1A1B32 — rgb(26, 27, 50)
Tritanopia (Blue-blind)
#1E2C2A — rgb(30, 44, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 57%, 16%);
text
color: hsl(257, 57%, 16%);
border
border: 2px solid hsl(257, 57%, 16%);
gradient light
background: linear-gradient(to right, hsl(257, 57%, 36%), hsl(257, 57%, 16%));
gradient dark
background: linear-gradient(to right, hsl(257, 57%, 16%), hsl(257, 57%, 0%))
hex
background-color: #1F1240;
tailwind
bg-[hsl(257,57%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 57%, 16%, 0.4);
css variable
--color-primary: hsl(257, 57%, 16%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 57%, 16%)?
HEX: #1F1240 | RGB: rgb(31, 18, 64) | CMYK: 52%, 72%, 0%, 75% | HSV: 257°, 72%, 25%. Copy any format from the conversion table above.
What colors go well with #1F1240?
The complementary color is HSL(77, 57%, 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, 57%, 16%) in CSS?
As HSL: color: hsl(257, 57%, 16%); — As HEX: color: #1F1240; — As RGB: color: rgb(31, 18, 64); — Tailwind CSS: bg-[hsl(257,57%,16%)] — CSS variable: --color-primary: hsl(257, 57%, 16%);