Pacific Depths to Midnight in Tokyo Gradient
CSS
background: linear-gradient(90deg, #004488 0%, #000088 100%);
From Pacific Depths (#004488) to Midnight in Tokyo (#000088). The two hues are 30° 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 | |
|---|---|---|---|---|---|
| Pacific Depths | #004488 | 0, 68, 136 | 210°, 100%, 27% | 100, 50, 0, 47 | |
| 25% (near One Minute to Midnight) | #003388 | 0, 51, 136 | 218°, 100%, 27% | 100, 63, 0, 47 | |
| 50% (near Lost in Heaven) | #002288 | 0, 34, 136 | 225°, 100%, 27% | 100, 75, 0, 47 | |
| 75% (near Galactic Cruise) | #001188 | 0, 17, 136 | 233°, 100%, 27% | 100, 88, 0, 47 | |
| Midnight in Tokyo | #000088 | 0, 0, 136 | 240°, 100%, 27% | 100, 100, 0, 47 |
Halfway along, the gradient is #002288, closest to the named color Lost in Heaven. 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.61:1, so the change is gentle.
Other ways to use it
- Top to bottom:
linear-gradient(180deg, #004488, #000088) - Diagonal:
linear-gradient(135deg, #004488, #000088) - Radial, from the center out:
radial-gradient(circle, #004488, #000088) - Tailwind CSS:
bg-gradient-to-r from-[#004488] to-[#000088]
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 Pacific Depths to Midnight in Tokyo gradient?
It starts at #004488 (Pacific Depths) and ends at #000088 (Midnight in Tokyo), with #002288 in the middle.
How do I reverse the gradient?
Swap the two colors or change the angle from 90deg to 270deg: linear-gradient(270deg, #004488, #000088) runs from Midnight in Tokyo on the left to Pacific Depths on the right.