# Royal Blue to Midnight Blue gradient

Royal Blue (#4169e1) to Midnight Blue (#191970), interpolated perceptually. The engine's pick for this pair is oklab.

- Page: https://brandsweets.com/gradients/royalblue-to-midnightblue
- Colors: https://brandsweets.com/colors/royalblue, https://brandsweets.com/colors/midnightblue
- Reverse: https://brandsweets.com/gradients/midnightblue-to-royalblue

## OKLab

- CSS: `linear-gradient(135deg in oklab, #4169e1 0%, #191970 100%)`
- Tailwind: `bg-linear-to-br/oklab from-[#4169e1] to-[#191970]`
- Contrast (worst point): white 4.85:1 AA · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.4169e1-191970?a=135

## OKLCH (shorter hue)

- CSS: `linear-gradient(135deg in oklch shorter hue, #4169e1 0%, #191970 100%)`
- Tailwind: `bg-linear-to-br/oklch from-[#4169e1] to-[#191970]`
- Contrast (worst point): white 4.85:1 AA · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.4169e1-191970?a=135&in=oklch&hue=shorter

## Eased (soft)

- CSS: `linear-gradient(135deg in oklab, #4169e1 0%, #4068df 8.28%, #3f64da 16.03%, #3c5fd3 23.35%, #3859ca 30.32%, #3451bf 37.03%, #3049b3 43.56%, #2c41a7 50%, #27389b 56.44%, #243090 62.97%, #202985 69.68%, #1d237d 76.65%, #1b1e76 83.97%, #191a72 91.72%, #191970 100%)`
- Tailwind: `bg-[linear-gradient(135deg_in_oklab,#4169e1_0%,#4068df_8.28%,#3f64da_16.03%,#3c5fd3_23.35%,#3859ca_30.32%,#3451bf_37.03%,#3049b3_43.56%,#2c41a7_50%,#27389b_56.44%,#243090_62.97%,#202985_69.68%,#1d237d_76.65%,#1b1e76_83.97%,#191a72_91.72%,#191970_100%)]`
- Contrast (worst point): white 4.85:1 AA · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.4169e1-191970?a=135&e=soft&n=15

## Mesh

- CSS: `radial-gradient(circle farthest-corner at 5.63% 62.39%, oklch(from #4169e1 l c h / 0.7451) 0%, rgb(from #4169e1 r g b / 0) 54.68%), radial-gradient(circle farthest-corner at 65.43% 81.02%, oklch(from #191970 l c h / 0.8868) 0%, rgb(from #191970 r g b / 0) 54.25%)`
- Tailwind: `bg-[radial-gradient(circle_farthest-corner_at_5.63%_62.39%,oklch(from_#4169e1_l_c_h_/_0.7451)_0%,rgb(from_#4169e1_r_g_b_/_0)_54.68%),radial-gradient(circle_farthest-corner_at_65.43%_81.02%,oklch(from_#191970_l_c_h_/_0.8868)_0%,rgb(from_#191970_r_g_b_/_0)_54.25%)]`
- Contrast (worst point): white 7.47:1 AA · black 1.62:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.4169e1-191970?k=mesh&seed=royalblue-to-midnightblue

## Gradient maker

Every maker URL is the gradient's state: `/gradients/new/v1.<hex>-<hex>[_pos]?a=135&in=oklch&hue=shorter&e=soft&g=8`. Hand one to a human, let them refine, and read the link they return.

## Connect an agent

Point any MCP client at the BrandSweets gradients endpoint for the same engine and corpus:

- Endpoint: https://mcp.brandsweets.com/gradients/mcp
- Tools: `make_gradient` (2–5 colours → CSS with the interpolation space, Tailwind v4, SVG, PNG URL, DTCG token + the contrast/banding/gamut report), `brand_gradients` (brand slug or palette → brand gradient, hero, button, variants).
- Resource: `gradients://corpus` — the whole bundled corpus as JSON.
