HSL(257, 79%, 25%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,79%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 79%, 25%) | color: hsl(257, 79%, 25%) | |
| HEX | #2A0D72 | color: #2A0D72 | |
| RGB | rgb(42, 13, 114) | color: rgb(42, 13, 114) | |
| CMYK | cmyk(63%, 89%, 0%, 55%) | — | |
| HSV | hsv(257, 89%, 45%) | — | |
| HWB | hwb(257 5% 55%) | color: hwb(257 5% 55%) | |
| OKLCH | oklch(0.2898 0.1533 284.59) | color: oklch(0.2898 0.1533 284.59) | |
| Lab | lab(15.46 40.25 -51.48) | color: lab(15.46 40.25 -51.48) | |
| LCH | lch(15.46 65.35 308.02) | color: lch(15.46 65.35 308.02) |
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)
#1D1D5A — rgb(29, 29, 90)
Deuteranopia (Green-blind)
#1F2154 — rgb(31, 33, 84)
Tritanopia (Blue-blind)
#294642 — rgb(41, 70, 66)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 79%, 25%);
text
color: hsl(257, 79%, 25%);
border
border: 2px solid hsl(257, 79%, 25%);
gradient light
background: linear-gradient(to right, hsl(257, 79%, 45%), hsl(257, 79%, 25%));
gradient dark
background: linear-gradient(to right, hsl(257, 79%, 25%), hsl(257, 79%, 5%))
hex
background-color: #2A0D72;
tailwind
bg-[hsl(257,79%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 79%, 25%, 0.4);
css variable
--color-primary: hsl(257, 79%, 25%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 79%, 25%)?
HEX: #2A0D72 | RGB: rgb(42, 13, 114) | CMYK: 63%, 89%, 0%, 55% | HSV: 257°, 89%, 45%. Copy any format from the conversion table above.
What colors go well with #2A0D72?
The complementary color is HSL(77, 79%, 25%). 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, 79%, 25%) in CSS?
As HSL: color: hsl(257, 79%, 25%); — As HEX: color: #2A0D72; — As RGB: color: rgb(42, 13, 114); — Tailwind CSS: bg-[hsl(257,79%,25%)] — CSS variable: --color-primary: hsl(257, 79%, 25%);