# Midnight Blue to Royal Blue gradient

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

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

## OKLab

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

## OKLCH (shorter hue)

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

## Eased (soft)

- CSS: `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%)`
- Tailwind: `bg-[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%)]`
- Contrast (worst point): white 4.85:1 AA · black 1.41:1 fail · banding medium
- Maker: https://brandsweets.com/gradients/new/v1.191970-4169e1?a=135&e=soft&n=15

## Mesh

- CSS: `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%)`
- Tailwind: `bg-[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%)]`
- Contrast (worst point): white 7.17:1 AA · black 1.82:1 fail · banding low
- Maker: https://brandsweets.com/gradients/new/v1.191970-4169e1?k=mesh&seed=midnightblue-to-royalblue

## 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.
