HSL(10, 40%, 18%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(10,40%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(10, 40%, 18%) | color: hsl(10, 40%, 18%) | |
| HEX | #40221C | color: #40221C | |
| RGB | rgb(64, 34, 28) | color: rgb(64, 34, 28) | |
| CMYK | cmyk(0%, 47%, 56%, 75%) | — | |
| HSV | hsv(10, 56%, 25%) | — | |
| HWB | hwb(10 11% 75%) | color: hwb(10 11% 75%) | |
| OKLCH | oklch(0.2903 0.0478 32.18) | color: oklch(0.2903 0.0478 32.18) | |
| Lab | lab(17.08 13.6 10.25) | color: lab(17.08 13.6 10.25) | |
| LCH | lch(17.08 17.03 37) | color: lch(17.08 17.03 37) |
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)
#33331D — rgb(51, 51, 29)
Deuteranopia (Green-blind)
#35371E — rgb(53, 55, 30)
Tritanopia (Blue-blind)
#3F1F1F — rgb(63, 31, 31)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(10, 40%, 18%);
text
color: hsl(10, 40%, 18%);
border
border: 2px solid hsl(10, 40%, 18%);
gradient light
background: linear-gradient(to right, hsl(10, 40%, 38%), hsl(10, 40%, 18%));
gradient dark
background: linear-gradient(to right, hsl(10, 40%, 18%), hsl(10, 40%, 0%))
hex
background-color: #40221C;
tailwind
bg-[hsl(10,40%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(10, 40%, 18%, 0.4);
css variable
--color-primary: hsl(10, 40%, 18%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(10, 40%, 18%)?
HEX: #40221C | RGB: rgb(64, 34, 28) | CMYK: 0%, 47%, 56%, 75% | HSV: 10°, 56%, 25%. Copy any format from the conversion table above.
What colors go well with #40221C?
The complementary color is HSL(190, 40%, 18%). For a triadic harmony, use hues 10°, 130°, and 250°. For analogous combinations, try hues 340° and 40°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(10, 40%, 18%) in CSS?
As HSL: color: hsl(10, 40%, 18%); — As HEX: color: #40221C; — As RGB: color: rgb(64, 34, 28); — Tailwind CSS: bg-[hsl(10,40%,18%)] — CSS variable: --color-primary: hsl(10, 40%, 18%);