Oxford by Night to Illicit Darkness Gradient
CSS
background: linear-gradient(90deg, #001b2e 0%, #00022e 100%);
From Oxford by Night (#001B2E) to Illicit Darkness (#00022E). The two hues are 33° 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 | |
|---|---|---|---|---|---|
| Oxford by Night | #001B2E | 0, 27, 46 | 205°, 100%, 9% | 100, 41, 0, 82 | |
| 25% (near Squid’s Ink) | #00152E | 0, 21, 46 | 213°, 100%, 9% | 100, 54, 0, 82 | |
| 50% (near Squid’s Ink) | #000F2E | 0, 15, 46 | 220°, 100%, 9% | 100, 67, 0, 82 | |
| 75% (near Illicit Darkness) | #00082E | 0, 8, 46 | 230°, 100%, 9% | 100, 83, 0, 82 | |
| Illicit Darkness | #00022E | 0, 2, 46 | 237°, 100%, 9% | 100, 96, 0, 82 |
Halfway along, the gradient is #000F2E, closest to the named color Squid’s Ink. 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.14:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #001b2e, #00022e) - Diagonal:
linear-gradient(135deg, #001b2e, #00022e) - Radial, from the center out:
radial-gradient(circle, #001b2e, #00022e) - Tailwind CSS:
bg-gradient-to-r from-[#001b2e] to-[#00022e]
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 Oxford by Night to Illicit Darkness gradient?
It starts at #001B2E (Oxford by Night) and ends at #00022E (Illicit Darkness), with #000F2E in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #001b2e, #00022e) runs from Illicit Darkness on the left to Oxford by Night on the right.