HSL(257, 85%, 24%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,85%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 85%, 24%) | color: hsl(257, 85%, 24%) | |
| HEX | #270971 | color: #270971 | |
| RGB | rgb(39, 9, 113) | color: rgb(39, 9, 113) | |
| CMYK | cmyk(65%, 92%, 0%, 56%) | — | |
| HSV | hsv(257, 92%, 44%) | — | |
| HWB | hwb(257 4% 56%) | color: hwb(257 4% 56%) | |
| OKLCH | oklch(0.2821 0.1553 283.26) | color: oklch(0.2821 0.1553 283.26) | |
| Lab | lab(14.51 41.17 -52.42) | color: lab(14.51 41.17 -52.42) | |
| LCH | lch(14.51 66.65 308.15) | color: lch(14.51 66.65 308.15) |
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)
#1A1A58 — rgb(26, 26, 88)
Deuteranopia (Green-blind)
#1C1E52 — rgb(28, 30, 82)
Tritanopia (Blue-blind)
#264440 — rgb(38, 68, 64)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 85%, 24%);
text
color: hsl(257, 85%, 24%);
border
border: 2px solid hsl(257, 85%, 24%);
gradient light
background: linear-gradient(to right, hsl(257, 85%, 44%), hsl(257, 85%, 24%));
gradient dark
background: linear-gradient(to right, hsl(257, 85%, 24%), hsl(257, 85%, 4%))
hex
background-color: #270971;
tailwind
bg-[hsl(257,85%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 85%, 24%, 0.4);
css variable
--color-primary: hsl(257, 85%, 24%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 85%, 24%)?
HEX: #270971 | RGB: rgb(39, 9, 113) | CMYK: 65%, 92%, 0%, 56% | HSV: 257°, 92%, 44%. Copy any format from the conversion table above.
What colors go well with #270971?
The complementary color is HSL(77, 85%, 24%). 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, 85%, 24%) in CSS?
As HSL: color: hsl(257, 85%, 24%); — As HEX: color: #270971; — As RGB: color: rgb(39, 9, 113); — Tailwind CSS: bg-[hsl(257,85%,24%)] — CSS variable: --color-primary: hsl(257, 85%, 24%);