HSL(2, 74%, 19%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,74%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 74%, 19%) | color: hsl(2, 74%, 19%) | |
| HEX | #540F0D | color: #540F0D | |
| RGB | rgb(84, 15, 13) | color: rgb(84, 15, 13) | |
| CMYK | cmyk(0%, 82%, 85%, 67%) | — | |
| HSV | hsv(2, 85%, 33%) | — | |
| HWB | hwb(2 5% 67%) | color: hwb(2 5% 67%) | |
| OKLCH | oklch(0.2946 0.1007 27.21) | color: oklch(0.2946 0.1007 27.21) | |
| Lab | lab(16.78 31.17 20.19) | color: lab(16.78 31.17 20.19) | |
| LCH | lch(16.78 37.14 32.93) | color: lch(16.78 37.14 32.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)
#36360D — rgb(54, 54, 13)
Deuteranopia (Green-blind)
#3A3F0E — rgb(58, 63, 14)
Tritanopia (Blue-blind)
#510E0E — rgb(81, 14, 14)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 74%, 19%);
text
color: hsl(2, 74%, 19%);
border
border: 2px solid hsl(2, 74%, 19%);
gradient light
background: linear-gradient(to right, hsl(2, 74%, 39%), hsl(2, 74%, 19%));
gradient dark
background: linear-gradient(to right, hsl(2, 74%, 19%), hsl(2, 74%, 0%))
hex
background-color: #540F0D;
tailwind
bg-[hsl(2,74%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 74%, 19%, 0.4);
css variable
--color-primary: hsl(2, 74%, 19%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(2, 74%, 19%)?
HEX: #540F0D | RGB: rgb(84, 15, 13) | CMYK: 0%, 82%, 85%, 67% | HSV: 2°, 85%, 33%. Copy any format from the conversion table above.
What colors go well with #540F0D?
The complementary color is HSL(182, 74%, 19%). For a triadic harmony, use hues 2°, 122°, and 242°. For analogous combinations, try hues 332° and 32°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(2, 74%, 19%) in CSS?
As HSL: color: hsl(2, 74%, 19%); — As HEX: color: #540F0D; — As RGB: color: rgb(84, 15, 13); — Tailwind CSS: bg-[hsl(2,74%,19%)] — CSS variable: --color-primary: hsl(2, 74%, 19%);