HSL(256, 25%, 17%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(256,25%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(256, 25%, 17%) | color: hsl(256, 25%, 17%) | |
| HEX | #262136 | color: #262136 | |
| RGB | rgb(38, 33, 54) | color: rgb(38, 33, 54) | |
| CMYK | cmyk(30%, 39%, 0%, 79%) | — | |
| HSV | hsv(254, 39%, 21%) | — | |
| HWB | hwb(254 13% 79%) | color: hwb(254 13% 79%) | |
| OKLCH | oklch(0.2635 0.0391 294.5) | color: oklch(0.2635 0.0391 294.5) | |
| Lab | lab(14.21 8.03 -12.84) | color: lab(14.21 8.03 -12.84) | |
| LCH | lch(14.21 15.14 302.02) | color: lch(14.21 15.14 302.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)
#242431 — rgb(36, 36, 49)
Deuteranopia (Green-blind)
#242530 — rgb(36, 37, 48)
Tritanopia (Blue-blind)
#262D2C — rgb(38, 45, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(256, 25%, 17%);
text
color: hsl(256, 25%, 17%);
border
border: 2px solid hsl(256, 25%, 17%);
gradient light
background: linear-gradient(to right, hsl(256, 25%, 37%), hsl(256, 25%, 17%));
gradient dark
background: linear-gradient(to right, hsl(256, 25%, 17%), hsl(256, 25%, 0%))
hex
background-color: #262136;
tailwind
bg-[hsl(256,25%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(256, 25%, 17%, 0.4);
css variable
--color-primary: hsl(256, 25%, 17%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(256, 25%, 17%)?
HEX: #262136 | RGB: rgb(38, 33, 54) | CMYK: 30%, 39%, 0%, 79% | HSV: 254°, 39%, 21%. Copy any format from the conversion table above.
What colors go well with #262136?
The complementary color is HSL(76, 25%, 17%). For a triadic harmony, use hues 256°, 16°, and 136°. For analogous combinations, try hues 226° and 286°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(256, 25%, 17%) in CSS?
As HSL: color: hsl(256, 25%, 17%); — As HEX: color: #262136; — As RGB: color: rgb(38, 33, 54); — Tailwind CSS: bg-[hsl(256,25%,17%)] — CSS variable: --color-primary: hsl(256, 25%, 17%);