# Cobalt Blue to Midnight Blue gradient

Cobalt Blue (#0047ab) to Midnight Blue (#191970), interpolated perceptually. The engine's pick for this pair is oklab.

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

## OKLab

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

## OKLCH (shorter hue)

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

## Eased (soft)

- CSS: `linear-gradient(135deg in oklab, #0047ab 0%, #0146aa 8.28%, #0444a8 16.03%, #0742a4 23.35%, #0c3e9f 30.32%, #0f3a99 37.03%, #123593 43.56%, #15308d 50%, #162b87 56.44%, #172781 62.97%, #18227b 69.68%, #191f77 76.65%, #191c73 83.97%, #191a71 91.72%, #191970 100%)`
- Tailwind: `bg-[linear-gradient(135deg_in_oklab,#0047ab_0%,#0146aa_8.28%,#0444a8_16.03%,#0742a4_23.35%,#0c3e9f_30.32%,#0f3a99_37.03%,#123593_43.56%,#15308d_50%,#162b87_56.44%,#172781_62.97%,#18227b_69.68%,#191f77_76.65%,#191c73_83.97%,#191a71_91.72%,#191970_100%)]`
- Contrast (worst point): white 8.43:1 AA · black 1.41:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.0047ab-191970?a=135&e=soft&n=15

## Mesh

- CSS: `radial-gradient(circle farthest-corner at 10.9% 80.58%, oklch(from #0047ab l c h / 0.7145) 0%, rgb(from #0047ab r g b / 0) 46.24%), radial-gradient(circle farthest-corner at 93.74% 57.98%, oklch(from #191970 l c h / 0.7586) 0%, rgb(from #191970 r g b / 0) 45.66%)`
- Tailwind: `bg-[radial-gradient(circle_farthest-corner_at_10.9%_80.58%,oklch(from_#0047ab_l_c_h_/_0.7145)_0%,rgb(from_#0047ab_r_g_b_/_0)_46.24%),radial-gradient(circle_farthest-corner_at_93.74%_57.98%,oklch(from_#191970_l_c_h_/_0.7586)_0%,rgb(from_#191970_r_g_b_/_0)_45.66%)]`
- Contrast (worst point): white 11.15:1 AA · black 1.65:1 fail · banding high
- Maker: https://brandsweets.com/gradients/new/v1.0047ab-191970?k=mesh&seed=cobalt-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.
