On this page
Below you will find exact color values, CSS for the common angles, a fix for the flat middle that dark gradients often have, real contrast ratios for text, and notes on print, interiors and branding.
The Exact Codes for Red, Dark Red and Black
Every red to black gradient is built from a few anchor colors. These are the values I reach for first, with RGB, HSL and CMYK worked out from the hex.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Red | 255, 0, 0 | 0°, 100%, 50% | 0, 100, 100, 0 | |
| Dark red | 139, 0, 0 | 0°, 100%, 27% | 0, 100, 100, 45 | |
| Maroon (the 50% midpoint) | 128, 0, 0 | 0°, 100%, 25% | 0, 100, 100, 50 | |
| Black | 0, 0, 0 | 0°, 0%, 0% | 0, 0, 0, 100 |
The CMYK figures are the plain mathematical conversion. A print shop’s color profile will give different numbers, and pure red in particular shifts, so treat that column as a starting point for a proof, not a final spec.
How Red, Dark Red and Black Differ From Close Shades
is red at full strength, with no green or blue in it. It sits at the edge of what a screen can show, which is why it seems to vibrate against black. Dark red keeps the same hue (0°) and the same full saturation, and only the lightness drops to 27%. Maroon is nearly the same, just a touch darker.
Crimson looks different because it carries some blue, which pushes it toward pink. A wine tone like does the same in a darker register. If you want the gradient to feel hot and pure, stay with the zero-blue reds. If you want it to feel rich and a little cool, pick the crimson family.
The black end matters too. Pure is unlit on an OLED screen, so the gradient seems to melt into the bezel. A near-black such as feels softer and also helps with banding, which we get to below. For a charcoal ending instead of a void, the shades in the gray gradient guide are a good source.
Writing the CSS for a Red to Black Gradient
In the studio above you can move the stops, change the angle and switch the type, then copy the code. This is the version I use most, with a solid fallback line first.
.hero {
background: #8B0000;
background: linear-gradient(135deg, #FF0000 0%, #8B0000 45%, #000000 100%);
}
A radial version works like a spotlight, with red glowing at one point and fading into black around it.
.glow {
background: radial-gradient(circle at 30% 20%, #FF0000, #8B0000 40%, #000000 75%);
}
In Tailwind, arbitrary values do the same job: bg-gradient-to-br from-[#FF0000] via-[#8B0000] to-black. Remember that a gradient is an image, not a color, so it belongs in background or background-image, never in background-color.
Which Angle and Direction Look Best
The angle decides where the light seems to come from. Four settings cover nearly every case:
- 90deg: red on the left, black on the right. Good for wide banners and headers.
- 180deg: red at the top, black at the bottom. The CSS default, and a natural fit for page backgrounds because text sits low on the dark part.
- 135deg: a diagonal from top left. The most dynamic everyday choice.
- 0deg: black at the top, red at the bottom, like heat rising. Nice for footers and card bases.
To reverse the blend, swap the stops or use to top and to left. One detail worth knowing: corner keywords such as to bottom right adapt to the box shape, while 135deg is a fixed angle. On a very wide or tall element the two look noticeably different.
Why the Middle Looks Flat and How to Fix It
A plain red to black blend only changes the red channel. By 50% you are at , which the eye reads as already quite dark, so the bright red seems to vanish in the first third and the rest looks like black. The fix is to move the dark red stop earlier, around 35 to 45%, or to make the red end larger with a stop such as #FF0000 20%.
Add in srgb-linear after the angle, as in linear-gradient(in srgb-linear 135deg, #FF0000, #000000). The 50% point becomes about instead of .
Which change brightens the midpoint of a red to black gradient?
Interpolating in linear light moves the 50% point from #800000 to roughly #BC0000, so more bright red stays visible.
Banding is the other issue. With only one channel changing, the gradient has at most 256 distinct steps, and dark red to black has just 139. Across a 1920 pixel hero, each step is several pixels wide, and on a good monitor you can see the edges. Ending on instead of pure black adds a few extra colors, a faint noise texture hides the rest, and a mid stop like also helps.
Text Contrast on a Red to Black Gradient
I computed these WCAG ratios from the hex values. White on gives about 4.0:1, which fails the 4.5:1 level for body text and passes only for large text. Black on gives about 5.3:1. On dark red , white reaches about 10.0:1 and black falls to about 2.1:1.
Which text color is the safe choice on #8B0000?
White on #8B0000 measures about 10.0:1, while black measures only about 2.1:1.
So white is the right text color for almost the whole gradient. It only slips under 4.5:1 where the red channel climbs above roughly 238, so around and brighter. On a client dashboard hero, QA flagged a headline sitting over the brightest corner. I moved the first stop to , which gives white about 6.4:1, and kept the vivid red for a small accent shape instead.

When text sits over a gradient, test the lightest pixel under the text, not the average. More pairings that hold up are collected in the high contrast color palette guide.

Using Red to Black Gradients in Web and UI Design
Red to black works best where you want drama and have a clear job for the dark side. These are the uses I see succeed:
- Hero sections: keep the headline over the dark end, in white.
- Photo overlays:
linear-gradient(to top, rgba(0,0,0,0.85), rgba(139,0,0,0.35))darkens the bottom of an image so captions stay readable. - Buttons: use fading to , because a white label on only reaches 4.0:1.
- Dark mode cards and gaming interfaces: a subtle diagonal gives depth without a heavy image.
Try this: Set your hero background to
linear-gradient(135deg, #C1121F, #8B0000 50%, #000000)with a white headline. Slide the middle stop between 30% and 60% until the red feels like it lasts, then check the lightest pixel behind the text.
CSS gradients cost no image download, so they are light on performance. If you want movement, animate background-position on an oversized gradient rather than swapping colors.
Red and Black in Branding, Interiors, Fashion and Art
Red and black together signal power, speed and intensity, which is why they show up in motorsport, gaming and sports kits. Flags use the pairing too: Albania’s red field carries a black eagle, and the pan-African colors of red, black and green appear in our Black History Month colors palette. Add gold and you get the German flag’s feel, which you can explore in the gold gradient guide.
In interiors, a full-strength red feels loud on a large wall, so designers usually lean on deep wine tones like with black cabinetry or trim. Gradient lighting and ombré paint effects can echo the same fade. In fashion, dip-dyed and ombré fabrics move from deep red into black, and velvet makes that blend look rich.
For art and illustration, red to black reads as heat, danger or night. To soften it, shift the red toward orange as in a sunset gradient. For a cooler, more playful mood, try the pink to black gradient. Swap black for a warm dark and you land in brown gradient territory.
Printing Red to Black Without Surprises
Screen red cannot be reproduced in standard CMYK inks. It converts to a duller red built from magenta and yellow, so the print will look less electric than the monitor. Uncoated paper dulls it further.
I once received a proof where a poster gradient that looked smooth on screen showed clear steps in the last stretch before black. The fix was to end on a rich black rather than K-only, and to add a slight texture. Always ask for a physical proof when the blend matters, and use a spot color if the brand red must match exactly.
Colors That Pair Well With Red and Black
Keep red as the single loud color and let neutrals carry the rest. White and off-white give crisp contrast, silver and charcoal add a technical feel, and gold such as pushes things toward luxury. Avoid adding a second saturated hue unless it is a deliberate accent. These four palettes are built around the gradient.
Sharp and graphic, good for posters, game interfaces and bold landing pages.
Warm and theatrical, suited to event invitations, restaurants and boutique branding.
Fast and energetic, works for sports apps, racing graphics and fitness dashboards.
Rich and premium, a strong fit for packaging, awards pages and luxury labels.
The colors behind these gradients
Red to Black Gradient: questions people ask
How do you make a red to black gradient in CSS?
Use background: linear-gradient(135deg, #FF0000, #000000). For a smoother result add dark red as a middle stop: linear-gradient(135deg, #FF0000 0%, #8B0000 45%, #000000 100%).
What is the hex code for dark red?
Dark red is #8B0000, the CSS named color darkred. It equals RGB 139, 0, 0 and HSL 0, 100%, 27%.
Why does my red to black gradient show visible bands?
Only the red channel changes, so a pure red to black blend has at most 256 steps, and each one can show on a wide screen. Add a faint tint to the black end such as #1A0005, add a middle stop, or lay a subtle noise texture over it.
Is white text readable on a red to black gradient?
Yes, almost everywhere. White on #FF0000 is about 4.0:1, which is only fine for large text, but white on #8B0000 is about 10.0:1. Start the gradient at #C1121F (about 6.4:1) if you need body text near the red end.
What colors go well with red and black?
White, off-white, silver and charcoal keep it crisp, while gold such as #D4AF37 makes it feel premium. Keep red as the single accent and let black and neutrals do the rest.
Keep exploring
- Pastel Green Gradient: Backgrounds, Wallpapers and CSS Codes
- Black Gradient: Dark Theme Gradients with CSS Codes
- Rainbow Gradient: Colors, Backgrounds and CSS Codes
- Green Gradient: Color Combinations, Hex Codes and CSS
- Bronze Gradient: Wallpaper Colors, Hex Codes and CSS
- Blue Grey Gradient: Color Codes and CSS Examples
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes