Colour to colour · generated
Midnight Blue to Royal Blue gradient
Midnight Blue (#191970) into Royal Blue (#4169e1) — 6° apart on the OKLCH hue wheel. Below: the same two stops interpolated in OKLab and in OKLCH, side by side, because the difference is real and most generators never let you see it; then an eased version and a mesh, each with the worst-case contrast for white and black text. The engine's own pick for this pair is oklab — both colours are in the palette and the hue gap is small enough that the straight line stays clean.
OKLab and OKLCH, side by side
OKLab
Open in maker →A straight line through the a/b plane: the two hues meet halfway and desaturate a little at the midpoint. The safe default — it is what CSS and Tailwind default to.
linear-gradient(135deg in oklab, #191970 0%, #4169e1 100%)
OKLCH (shorter hue)
Open in maker →Chroma and hue interpolate separately, so the midpoint keeps its saturation and the hue travels the short way round the wheel — richer, and it can pass through hues neither colour has.
linear-gradient(135deg in oklch shorter hue, #191970 0%, #4169e1 100%)
And the sRGB line most tools draw, for comparison — the number is the chroma that survives at the dullest point.
Eased and mesh
Eased (soft)
Open in maker →A cubic-bezier(.4, 0, .6, 1) mix ratio baked into 15 stops: the transition lingers on each colour and moves faster through the middle, which is what makes a gradient read as designed rather than default.
linear-gradient(135deg in oklab, #191970 0%, #191a72 8.28%, #1b1e76 16.03%, #1d237d 23.35%, #202985 30.32%, #243090 37.03%, #27389b 43.56%, #2c41a7 50%, #3049b3 56.44%, #3451bf 62.97%, #3859ca 69.68%, #3c5fd3 76.65%, #3f64da 83.97%, #4068df 91.72%, #4169e1 100%)
Mesh
Open in maker →Both colours as stacked radials over a base, laid out by a seeded Poisson-disc sampler — the same seed gives the same mesh forever. Exports as CSS, SVG and PNG.
background-color: #2c41a7; background-image: radial-gradient(circle farthest-corner at 7.09% 53.35%, rgba(65, 105, 225, 0.809) 0%, rgba(65, 105, 225, 0) 50.48%), radial-gradient(circle farthest-corner at 71.41% 46.2%, rgba(25, 25, 112, 0.813) 0%, rgba(25, 25, 112, 0) 52.95%); background-image: radial-gradient(circle farthest-corner at 7.09% 53.35%, oklch(from #4169e1 l c h / 0.8087) 0%, rgb(from #4169e1 r g b / 0) 50.48%), radial-gradient(circle farthest-corner at 71.41% 46.2%, oklch(from #191970 l c h / 0.8129) 0%, rgb(from #191970 r g b / 0) 52.95%);
Report
- white ink: worst 4.85:1 at 100% (AA); black ink: worst 1.41:1 at 0% (fails AA) → use white text.
- Banding medium: ~13px bands at 1440px — add grain 27 (≈2% soft-light noise) or shorten the ramp.
Export
.gradient {
background-image: linear-gradient(135deg, #191970 0%, #1b1f78 7.14%, #1e247f 14.29%, #212a87 21.43%, #23308f 28.57%, #263597 35.71%, #293b9f 42.86%, #2c41a7 50%, #2f46af 57.14%, #324cb7 64.29%, #3552bf 71.43%, #3857c8 78.57%, #3b5dd0 85.71%, #3e63d9 92.86%, #4169e1 100%);
background-image: linear-gradient(135deg in oklab, #191970 0%, #4169e1 100%);
}bg-linear-to-br/oklab from-[#191970] to-[#4169e1]
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="600" viewBox="0 0 1440 600"><defs><linearGradient id="bs-gradient" gradientUnits="userSpaceOnUse" x1="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#191970"/><stop offset="7.14%" stop-color="#1b1f78"/><stop offset="14.29%" stop-color="#1e247f"/><stop offset="21.43%" stop-color="#212a87"/><stop offset="28.57%" stop-color="#23308f"/><stop offset="35.71%" stop-color="#263597"/><stop offset="42.86%" stop-color="#293b9f"/><stop offset="50%" stop-color="#2c41a7"/><stop offset="57.14%" stop-color="#2f46af"/><stop offset="64.29%" stop-color="#324cb7"/><stop offset="71.43%" stop-color="#3552bf"/><stop offset="78.57%" stop-color="#3857c8"/><stop offset="85.71%" stop-color="#3b5dd0"/><stop offset="92.86%" stop-color="#3e63d9"/><stop offset="100%" stop-color="#4169e1"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
{
"midnightblue-to-royalblue": {
"$type": "gradient",
"$value": [
{
"color": {
"colorSpace": "srgb",
"components": [
0.098,
0.098,
0.439
],
"hex": "#191970"
},
"position": 0
},
{
"color": {
"colorSpace": "srgb",
"components": [
0.255,
0.412,
0.882
],
"hex": "#4169e1"
},
"position": 1
}
],
"$extensions": {
"com.brandsweets": {
"kind": "linear",
"css": "linear-gradient(135deg in oklab, #191970 0%, #4169e1 100%)",
"interpolation": "oklab",
"angle": 135,
"name": "midnightblue-to-royalblue",
"contrast": {
"white": {
"ratio": 4.847,
"at": 1,
"passesAA": true,
"passesAALarge": true
},
"black": {
"ratio": 1.414,
"at": 0,
"passesAA": false,
"passesAALarge": false
},
"suggestedInk": "#ffffff"
}
}
},
"$description": "Midnight Blue to Royal Blue, interpolated in oklab."
}
}More from Midnight Blue
Point any MCP client at the shared gradients endpoint and your agent gets the same engine as this page — make_gradient returns CSS with the interpolation space, Tailwind v4, SVG, a PNG URL, a DTCG token and the contrast report in one call; brand_gradients derives the whole contact sheet from a brand or a palette. Read-only, no key. Every gradient is a /gradients/new/… link: open it, refine, paste it back.
https://mcp.brandsweets.com/gradients/mcpclaude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
›make a midnight blue to royal blue hero gradient in oklch that passes AA for white text, with grain if it bands
Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.
Machine-readable: gradients.md