HSL(268, 52%, 28%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(268,52%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(268, 52%, 28%) | color: hsl(268, 52%, 28%) | |
| HEX | #45226D | color: #45226D | |
| RGB | rgb(69, 34, 109) | color: rgb(69, 34, 109) | |
| CMYK | cmyk(37%, 69%, 0%, 57%) | — | |
| HSV | hsv(268, 69%, 43%) | — | |
| HWB | hwb(268 13% 57%) | color: hwb(268 13% 57%) | |
| OKLCH | oklch(0.3419 0.1248 301.51) | color: oklch(0.3419 0.1248 301.51) | |
| Lab | lab(21.99 32.93 -37.42) | color: lab(21.99 32.93 -37.42) | |
| LCH | lch(21.99 49.85 311.35) | color: lch(21.99 49.85 311.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)
#36365B — rgb(54, 54, 91)
Deuteranopia (Green-blind)
#383B57 — rgb(56, 59, 87)
Tritanopia (Blue-blind)
#434D49 — rgb(67, 77, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(268, 52%, 28%);
text
color: hsl(268, 52%, 28%);
border
border: 2px solid hsl(268, 52%, 28%);
gradient light
background: linear-gradient(to right, hsl(268, 52%, 48%), hsl(268, 52%, 28%));
gradient dark
background: linear-gradient(to right, hsl(268, 52%, 28%), hsl(268, 52%, 8%))
hex
background-color: #45226D;
tailwind
bg-[hsl(268,52%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(268, 52%, 28%, 0.4);
css variable
--color-primary: hsl(268, 52%, 28%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(268, 52%, 28%)?
HEX: #45226D | RGB: rgb(69, 34, 109) | CMYK: 37%, 69%, 0%, 57% | HSV: 268°, 69%, 43%. Copy any format from the conversion table above.
What colors go well with #45226D?
The complementary color is HSL(88, 52%, 28%). For a triadic harmony, use hues 268°, 28°, and 148°. For analogous combinations, try hues 238° and 298°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(268, 52%, 28%) in CSS?
As HSL: color: hsl(268, 52%, 28%); — As HEX: color: #45226D; — As RGB: color: rgb(69, 34, 109); — Tailwind CSS: bg-[hsl(268,52%,28%)] — CSS variable: --color-primary: hsl(268, 52%, 28%);