HSL(257, 95%, 31%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(257,95%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(257, 95%, 31%) | color: hsl(257, 95%, 31%) | |
| HEX | #2F049A | color: #2F049A | |
| RGB | rgb(47, 4, 154) | color: rgb(47, 4, 154) | |
| CMYK | cmyk(69%, 97%, 0%, 40%) | — | |
| HSV | hsv(257, 97%, 60%) | — | |
| HWB | hwb(257 2% 40%) | color: hwb(257 2% 40%) | |
| OKLCH | oklch(0.3371 0.2015 279.36) | color: oklch(0.3371 0.2015 279.36) | |
| Lab | lab(20.14 54.28 -68.95) | color: lab(20.14 54.28 -68.95) | |
| LCH | lch(20.14 87.75 308.21) | color: lch(20.14 87.75 308.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)
#1C1C76 — rgb(28, 28, 118)
Deuteranopia (Green-blind)
#1F226D — rgb(31, 34, 109)
Tritanopia (Blue-blind)
#2D5953 — rgb(45, 89, 83)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(257, 95%, 31%);
text
color: hsl(257, 95%, 31%);
border
border: 2px solid hsl(257, 95%, 31%);
gradient light
background: linear-gradient(to right, hsl(257, 95%, 51%), hsl(257, 95%, 31%));
gradient dark
background: linear-gradient(to right, hsl(257, 95%, 31%), hsl(257, 95%, 11%))
hex
background-color: #2F049A;
tailwind
bg-[hsl(257,95%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(257, 95%, 31%, 0.4);
css variable
--color-primary: hsl(257, 95%, 31%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(257, 95%, 31%)?
HEX: #2F049A | RGB: rgb(47, 4, 154) | CMYK: 69%, 97%, 0%, 40% | HSV: 257°, 97%, 60%. Copy any format from the conversion table above.
What colors go well with #2F049A?
The complementary color is HSL(77, 95%, 31%). 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, 95%, 31%) in CSS?
As HSL: color: hsl(257, 95%, 31%); — As HEX: color: #2F049A; — As RGB: color: rgb(47, 4, 154); — Tailwind CSS: bg-[hsl(257,95%,31%)] — CSS variable: --color-primary: hsl(257, 95%, 31%);