Black Pearl to Sombre Night Gradient
CSS
background: linear-gradient(90deg, #1e272c 0%, #161e34 100%);
From Black Pearl (#1E272C) to Sombre Night (#161E34). The two hues are 23° apart on the color wheel, close enough that the blend stays clean without a muddy middle.
Colors along the gradient
| Name | HEX | RGB | HSL | CMYK | |
|---|---|---|---|---|---|
| Black Pearl | #1E272C | 30, 39, 44 | 201°, 19%, 15% | 32, 11, 0, 83 | |
| 25% (near Dark) | #1C252E | 28, 37, 46 | 210°, 24%, 15% | 39, 20, 0, 82 | |
| 50% (near Dark) | #1A2330 | 26, 35, 48 | 215°, 30%, 15% | 46, 27, 0, 81 | |
| 75% (near Sombre Night) | #182032 | 24, 32, 50 | 222°, 35%, 15% | 52, 36, 0, 80 | |
| Sombre Night | #161E34 | 22, 30, 52 | 224°, 41%, 15% | 58, 42, 0, 80 |
Halfway along, the gradient is #1A2330, closest to the named color Dark. The stops are mixed in RGB, the way browsers draw a linear gradient by default.
Text on this gradient
White text reads best on both ends, so one text color works across the whole gradient. The two end colors have a contrast ratio of 1.09:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #1e272c, #161e34) - Diagonal:
linear-gradient(135deg, #1e272c, #161e34) - Radial, from the center out:
radial-gradient(circle, #1e272c, #161e34) - Tailwind CSS:
bg-gradient-to-r from-[#1e272c] to-[#161e34]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Related gradients
Questions
What are the HEX codes of the Black Pearl to Sombre Night gradient?
It starts at #1E272C (Black Pearl) and ends at #161E34 (Sombre Night), with #1A2330 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #1e272c, #161e34) runs from Sombre Night on the left to Black Pearl on the right.