HSL(262, 18%, 23%)
Indigo — Indigo color
Adjust Color
Color Information
Color Name
Indigo
Color Family
Indigo
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(262,18%,23%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 18%, 23%) | color: hsl(262, 18%, 23%) | |
| HEX | #383045 | color: #383045 | |
| RGB | rgb(56, 48, 69) | color: rgb(56, 48, 69) | |
| CMYK | cmyk(19%, 30%, 0%, 73%) | — | |
| HSV | hsv(263, 30%, 27%) | — | |
| HWB | hwb(263 19% 73%) | color: hwb(263 19% 73%) | |
| OKLCH | oklch(0.3268 0.038 301.79) | color: oklch(0.3268 0.038 301.79) | |
| Lab | lab(21.52 8.66 -11.77) | color: lab(21.52 8.66 -11.77) | |
| LCH | lch(21.52 14.61 306.34) | color: lch(21.52 14.61 306.34) |
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)
#353440 — rgb(53, 52, 64)
Deuteranopia (Green-blind)
#35363F — rgb(53, 54, 63)
Tritanopia (Blue-blind)
#383C3B — rgb(56, 60, 59)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 18%, 23%);
text
color: hsl(262, 18%, 23%);
border
border: 2px solid hsl(262, 18%, 23%);
gradient light
background: linear-gradient(to right, hsl(262, 18%, 43%), hsl(262, 18%, 23%));
gradient dark
background: linear-gradient(to right, hsl(262, 18%, 23%), hsl(262, 18%, 3%))
hex
background-color: #383045;
tailwind
bg-[hsl(262,18%,23%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 18%, 23%, 0.4);
css variable
--color-primary: hsl(262, 18%, 23%);
Related Colors
Use Cases for Indigo
Frequently Asked Questions
What are all the color codes for HSL(262, 18%, 23%)?
HEX: #383045 | RGB: rgb(56, 48, 69) | CMYK: 19%, 30%, 0%, 73% | HSV: 263°, 30%, 27%. Copy any format from the conversion table above.
What colors go well with #383045?
The complementary color is HSL(82, 18%, 23%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 18%, 23%) in CSS?
As HSL: color: hsl(262, 18%, 23%); — As HEX: color: #383045; — As RGB: color: rgb(56, 48, 69); — Tailwind CSS: bg-[hsl(262,18%,23%)] — CSS variable: --color-primary: hsl(262, 18%, 23%);