HSL(7, 40%, 17%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(7,40%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(7, 40%, 17%) | color: hsl(7, 40%, 17%) | |
| HEX | #3D1E1A | color: #3D1E1A | |
| RGB | rgb(61, 30, 26) | color: rgb(61, 30, 26) | |
| CMYK | cmyk(0%, 51%, 57%, 76%) | — | |
| HSV | hsv(7, 57%, 24%) | — | |
| HWB | hwb(7 10% 76%) | color: hwb(7 10% 76%) | |
| OKLCH | oklch(0.2768 0.0493 28.38) | color: oklch(0.2768 0.0493 28.38) | |
| Lab | lab(15.46 14.56 9.41) | color: lab(15.46 14.56 9.41) | |
| LCH | lch(15.46 17.34 32.87) | color: lch(15.46 17.34 32.87) |
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)
#302F1B — rgb(48, 47, 27)
Deuteranopia (Green-blind)
#31341B — rgb(49, 52, 27)
Tritanopia (Blue-blind)
#3B1C1C — rgb(59, 28, 28)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(7, 40%, 17%);
text
color: hsl(7, 40%, 17%);
border
border: 2px solid hsl(7, 40%, 17%);
gradient light
background: linear-gradient(to right, hsl(7, 40%, 37%), hsl(7, 40%, 17%));
gradient dark
background: linear-gradient(to right, hsl(7, 40%, 17%), hsl(7, 40%, 0%))
hex
background-color: #3D1E1A;
tailwind
bg-[hsl(7,40%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(7, 40%, 17%, 0.4);
css variable
--color-primary: hsl(7, 40%, 17%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(7, 40%, 17%)?
HEX: #3D1E1A | RGB: rgb(61, 30, 26) | CMYK: 0%, 51%, 57%, 76% | HSV: 7°, 57%, 24%. Copy any format from the conversion table above.
What colors go well with #3D1E1A?
The complementary color is HSL(187, 40%, 17%). For a triadic harmony, use hues 7°, 127°, and 247°. For analogous combinations, try hues 337° and 37°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(7, 40%, 17%) in CSS?
As HSL: color: hsl(7, 40%, 17%); — As HEX: color: #3D1E1A; — As RGB: color: rgb(61, 30, 26); — Tailwind CSS: bg-[hsl(7,40%,17%)] — CSS variable: --color-primary: hsl(7, 40%, 17%);