HSL(295, 40%, 18%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(295,40%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(295, 40%, 18%) | color: hsl(295, 40%, 18%) | |
| HEX | #3D1C40 | color: #3D1C40 | |
| RGB | rgb(61, 28, 64) | color: rgb(61, 28, 64) | |
| CMYK | cmyk(5%, 56%, 0%, 75%) | — | |
| HSV | hsv(295, 56%, 25%) | — | |
| HWB | hwb(295 11% 75%) | color: hwb(295 11% 75%) | |
| OKLCH | oklch(0.2893 0.0758 324.14) | color: oklch(0.2893 0.0758 324.14) | |
| Lab | lab(16.47 22.59 -16.12) | color: lab(16.47 22.59 -16.12) | |
| LCH | lch(16.47 27.75 324.49) | color: lch(16.47 27.75 324.49) |
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)
#2F2E37 — rgb(47, 46, 55)
Deuteranopia (Green-blind)
#313335 — rgb(49, 51, 53)
Tritanopia (Blue-blind)
#3B302F — rgb(59, 48, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(295, 40%, 18%);
text
color: hsl(295, 40%, 18%);
border
border: 2px solid hsl(295, 40%, 18%);
gradient light
background: linear-gradient(to right, hsl(295, 40%, 38%), hsl(295, 40%, 18%));
gradient dark
background: linear-gradient(to right, hsl(295, 40%, 18%), hsl(295, 40%, 0%))
hex
background-color: #3D1C40;
tailwind
bg-[hsl(295,40%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(295, 40%, 18%, 0.4);
css variable
--color-primary: hsl(295, 40%, 18%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(295, 40%, 18%)?
HEX: #3D1C40 | RGB: rgb(61, 28, 64) | CMYK: 5%, 56%, 0%, 75% | HSV: 295°, 56%, 25%. Copy any format from the conversion table above.
What colors go well with #3D1C40?
The complementary color is HSL(115, 40%, 18%). For a triadic harmony, use hues 295°, 55°, and 175°. For analogous combinations, try hues 265° and 325°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(295, 40%, 18%) in CSS?
As HSL: color: hsl(295, 40%, 18%); — As HEX: color: #3D1C40; — As RGB: color: rgb(61, 28, 64); — Tailwind CSS: bg-[hsl(295,40%,18%)] — CSS variable: --color-primary: hsl(295, 40%, 18%);