In the Dark to Sanctum of Shadows Gradient
CSS
background: linear-gradient(90deg, #3b3c41 0%, #3c2f4e 100%);
From In the Dark (#3B3C41) to Sanctum of Shadows (#3C2F4E). The two hues are 35° 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 | |
|---|---|---|---|---|---|
| In the Dark | #3B3C41 | 59, 60, 65 | 230°, 5%, 24% | 9, 8, 0, 75 | |
| 25% (near In the Dark) | #3B3944 | 59, 57, 68 | 251°, 9%, 25% | 13, 16, 0, 73 | |
| 50% (near Royal Decree) | #3C3648 | 60, 54, 72 | 260°, 14%, 25% | 17, 25, 0, 72 | |
| 75% (near Sanctum of Shadows) | #3C324B | 60, 50, 75 | 264°, 20%, 25% | 20, 33, 0, 71 | |
| Sanctum of Shadows | #3C2F4E | 60, 47, 78 | 265°, 25%, 25% | 23, 40, 0, 69 |
Halfway along, the gradient is #3C3648, closest to the named color Royal Decree. 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.12:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #3b3c41, #3c2f4e) - Diagonal:
linear-gradient(135deg, #3b3c41, #3c2f4e) - Radial, from the center out:
radial-gradient(circle, #3b3c41, #3c2f4e) - Tailwind CSS:
bg-gradient-to-r from-[#3b3c41] to-[#3c2f4e]
Gradients like this work well for page headers, buttons, cards and slide backgrounds. Keep body text on a solid color for the best readability.
Questions
What are the HEX codes of the In the Dark to Sanctum of Shadows gradient?
It starts at #3B3C41 (In the Dark) and ends at #3C2F4E (Sanctum of Shadows), with #3C3648 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #3b3c41, #3c2f4e) runs from Sanctum of Shadows on the left to In the Dark on the right.