HSL(267, 74%, 21%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(267,74%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(267, 74%, 21%) | color: hsl(267, 74%, 21%) | |
| HEX | #320E5D | color: #320E5D | |
| RGB | rgb(50, 14, 93) | color: rgb(50, 14, 93) | |
| CMYK | cmyk(46%, 85%, 0%, 64%) | — | |
| HSV | hsv(267, 85%, 36%) | — | |
| HWB | hwb(267 5% 64%) | color: hwb(267 5% 64%) | |
| OKLCH | oklch(0.2772 0.128 297.88) | color: oklch(0.2772 0.128 297.88) | |
| Lab | lab(14.3 34.9 -39.52) | color: lab(14.3 34.9 -39.52) | |
| LCH | lch(14.3 52.72 311.45) | color: lch(14.3 52.72 311.45) |
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)
#22224A — rgb(34, 34, 74)
Deuteranopia (Green-blind)
#252745 — rgb(37, 39, 69)
Tritanopia (Blue-blind)
#303B37 — rgb(48, 59, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(267, 74%, 21%);
text
color: hsl(267, 74%, 21%);
border
border: 2px solid hsl(267, 74%, 21%);
gradient light
background: linear-gradient(to right, hsl(267, 74%, 41%), hsl(267, 74%, 21%));
gradient dark
background: linear-gradient(to right, hsl(267, 74%, 21%), hsl(267, 74%, 1%))
hex
background-color: #320E5D;
tailwind
bg-[hsl(267,74%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(267, 74%, 21%, 0.4);
css variable
--color-primary: hsl(267, 74%, 21%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(267, 74%, 21%)?
HEX: #320E5D | RGB: rgb(50, 14, 93) | CMYK: 46%, 85%, 0%, 64% | HSV: 267°, 85%, 36%. Copy any format from the conversion table above.
What colors go well with #320E5D?
The complementary color is HSL(87, 74%, 21%). For a triadic harmony, use hues 267°, 27°, and 147°. For analogous combinations, try hues 237° and 297°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(267, 74%, 21%) in CSS?
As HSL: color: hsl(267, 74%, 21%); — As HEX: color: #320E5D; — As RGB: color: rgb(50, 14, 93); — Tailwind CSS: bg-[hsl(267,74%,21%)] — CSS variable: --color-primary: hsl(267, 74%, 21%);