HSL(267, 30%, 20%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(267,30%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(267, 30%, 20%) | color: hsl(267, 30%, 20%) | |
| HEX | #312442 | color: #312442 | |
| RGB | rgb(49, 36, 66) | color: rgb(49, 36, 66) | |
| CMYK | cmyk(26%, 45%, 0%, 74%) | — | |
| HSV | hsv(266, 45%, 26%) | — | |
| HWB | hwb(266 14% 74%) | color: hwb(266 14% 74%) | |
| OKLCH | oklch(0.2901 0.0556 303.06) | color: oklch(0.2901 0.0556 303.06) | |
| Lab | lab(17.03 13.53 -16.75) | color: lab(17.03 13.53 -16.75) | |
| LCH | lch(17.03 21.53 308.93) | color: lch(17.03 21.53 308.93) |
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)
#2B2B3B — rgb(43, 43, 59)
Deuteranopia (Green-blind)
#2C2D39 — rgb(44, 45, 57)
Tritanopia (Blue-blind)
#303534 — rgb(48, 53, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(267, 30%, 20%);
text
color: hsl(267, 30%, 20%);
border
border: 2px solid hsl(267, 30%, 20%);
gradient light
background: linear-gradient(to right, hsl(267, 30%, 40%), hsl(267, 30%, 20%));
gradient dark
background: linear-gradient(to right, hsl(267, 30%, 20%), hsl(267, 30%, 0%))
hex
background-color: #312442;
tailwind
bg-[hsl(267,30%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(267, 30%, 20%, 0.4);
css variable
--color-primary: hsl(267, 30%, 20%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(267, 30%, 20%)?
HEX: #312442 | RGB: rgb(49, 36, 66) | CMYK: 26%, 45%, 0%, 74% | HSV: 266°, 45%, 26%. Copy any format from the conversion table above.
What colors go well with #312442?
The complementary color is HSL(87, 30%, 20%). 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, 30%, 20%) in CSS?
As HSL: color: hsl(267, 30%, 20%); — As HEX: color: #312442; — As RGB: color: rgb(49, 36, 66); — Tailwind CSS: bg-[hsl(267,30%,20%)] — CSS variable: --color-primary: hsl(267, 30%, 20%);