HSL(2, 75%, 40%)
Red — Red color
Adjust Color
Color Information
Color Name
Red
Color Family
Red
Warm / Cool
🔴 Warm
Temperature
2000K
CSS Class
bg-[hsl(2,75%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(2, 75%, 40%) | color: hsl(2, 75%, 40%) | |
| HEX | #B31F1A | color: #B31F1A | |
| RGB | rgb(179, 31, 26) | color: rgb(179, 31, 26) | |
| CMYK | cmyk(0%, 83%, 85%, 30%) | — | |
| HSV | hsv(2, 85%, 70%) | — | |
| HWB | hwb(2 11% 30%) | color: hwb(2 11% 30%) | |
| OKLCH | oklch(0.4958 0.1835 28.36) | color: oklch(0.4958 0.1835 28.36) | |
| Lab | lab(38.97 56.79 41.86) | color: lab(38.97 56.79 41.86) | |
| LCH | lch(38.97 70.55 36.39) | color: lch(38.97 70.55 36.39) |
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)
#73721B — rgb(115, 114, 27)
Deuteranopia (Green-blind)
#7C871C — rgb(124, 135, 28)
Tritanopia (Blue-blind)
#AC1C1C — rgb(172, 28, 28)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(2, 75%, 40%);
text
color: hsl(2, 75%, 40%);
border
border: 2px solid hsl(2, 75%, 40%);
gradient light
background: linear-gradient(to right, hsl(2, 75%, 60%), hsl(2, 75%, 40%));
gradient dark
background: linear-gradient(to right, hsl(2, 75%, 40%), hsl(2, 75%, 20%))
hex
background-color: #B31F1A;
tailwind
bg-[hsl(2,75%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(2, 75%, 40%, 0.4);
css variable
--color-primary: hsl(2, 75%, 40%);
Related Colors
Use Cases for Red
Frequently Asked Questions
What are all the color codes for HSL(2, 75%, 40%)?
HEX: #B31F1A | RGB: rgb(179, 31, 26) | CMYK: 0%, 83%, 85%, 30% | HSV: 2°, 85%, 70%. Copy any format from the conversion table above.
What colors go well with #B31F1A?
The complementary color is HSL(182, 75%, 40%). 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, 75%, 40%) in CSS?
As HSL: color: hsl(2, 75%, 40%); — As HEX: color: #B31F1A; — As RGB: color: rgb(179, 31, 26); — Tailwind CSS: bg-[hsl(2,75%,40%)] — CSS variable: --color-primary: hsl(2, 75%, 40%);