Named gradient · uiGradients

Nighthawk

Nighthawk is a blue gradient from uiGradients (MIT) — #2980b9 → #2c3e50 at 90°. Shown here interpolated in OKLab, next to the original sRGB, with the worst-case contrast for white and black text and every export.

Aa — the quick brown fox
white text · worst 4.30:1 · AA large
white 4.30 AA largeblack 1.91 failsbanding medium

Same stops, three spaces

The source renders this in sRGB. The number is how much chroma survives at the dullest point along the line — the difference between the first bar and the others is the grey that OKLab removes.

sRGB49%
OKLab49%
OKLCH49%

Report

  • white ink: worst 4.30:1 at 0% (AA-large only); black ink: worst 1.91:1 at 100% (fails AA) → use white text.
  • Body text fails AA everywhere on this gradient; large text (≥24px / 19px bold) is fine. Add a scrim or lower the chroma for body copy.
  • Banding medium: ~14px bands at 1440px — add grain 28 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #2980b9 0%, #2b7bb1 7.14%, #2c76a9 14.29%, #2d71a1 21.43%, #2e6c9a 28.57%, #2e6892 35.71%, #2f638a 42.86%, #2f5e83 50%, #2f597b 57.14%, #2f5574 64.29%, #2e506c 71.43%, #2e4c65 78.57%, #2d475e 85.71%, #2d4257 92.86%, #2c3e50 100%);
  background-image: linear-gradient(90deg in oklab, #2980b9 0%, #2c3e50 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#2980b9] to-[#2c3e50]
svg
<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="0" y1="300" x2="1440" y2="300"><stop offset="0%" stop-color="#2980b9"/><stop offset="7.14%" stop-color="#2b7bb1"/><stop offset="14.29%" stop-color="#2c76a9"/><stop offset="21.43%" stop-color="#2d71a1"/><stop offset="28.57%" stop-color="#2e6c9a"/><stop offset="35.71%" stop-color="#2e6892"/><stop offset="42.86%" stop-color="#2f638a"/><stop offset="50%" stop-color="#2f5e83"/><stop offset="57.14%" stop-color="#2f597b"/><stop offset="64.29%" stop-color="#2f5574"/><stop offset="71.43%" stop-color="#2e506c"/><stop offset="78.57%" stop-color="#2e4c65"/><stop offset="85.71%" stop-color="#2d475e"/><stop offset="92.86%" stop-color="#2d4257"/><stop offset="100%" stop-color="#2c3e50"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "nighthawk": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.161,
            0.502,
            0.725
          ],
          "hex": "#2980b9"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.173,
            0.243,
            0.314
          ],
          "hex": "#2c3e50"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #2980b9 0%, #2c3e50 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Nighthawk",
        "contrast": {
          "white": {
            "ratio": 4.301,
            "at": 0,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 1.912,
            "at": 1,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Nighthawk (uiGradients, MIT), rendered in OKLab."
  }
}

Tagged

More blue gradients

mcpConnect your agent to the gradient engine
live endpoint

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.

endpointhttps://mcp.brandsweets.com/gradients/mcp
claude mcp add --transport http brandsweets-gradients https://mcp.brandsweets.com/gradients/mcp
try this prompt

take the Nighthawk gradient (#2980b9, #2c3e50), re-interpolate it in oklch, and tell me the worst-case contrast for white text

Want the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.

Machine-readable: gradients.md · From uiGradients (MIT) — licences