Named gradient · uiGradients

Moonlit Asteroid

Moonlit Asteroid is a blue gradient from uiGradients (MIT) — #0f2027 → #203a43 → #2c5364 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 8.31:1 · AA
white 8.31 AAblack 1.26 failsbanding high

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.

sRGB67%
OKLab67%
OKLCH67%

Report

  • white ink: worst 8.31:1 at 100% (AA); black ink: worst 1.26:1 at 0% (fails AA) → use white text.
  • Banding high: ~26px bands at 1440px — add grain 48 (≈3% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(90deg, #0f2027 0%, #102229 3.57%, #11242b 7.14%, #13252d 10.71%, #14272f 14.29%, #152931 17.86%, #162b33 21.43%, #172d35 25%, #192f37 28.57%, #1a3039 32.14%, #1b323b 35.71%, #1c343d 39.29%, #1d363f 42.86%, #1f3841 46.43%, #203a43 50%, #213c45 53.57%, #223d48 57.14%, #233f4a 60.71%, #23414c 64.29%, #24434f 67.86%, #254551 71.43%, #264653 75%, #274856 78.57%, #284a58 82.14%, #294c5a 85.71%, #294e5d 89.29%, #2a4f5f 92.86%, #2b5162 96.43%, #2c5364 100%);
  background-image: linear-gradient(90deg in oklab, #0f2027 0%, #203a43 50%, #2c5364 100%);
}
tailwind v4
bg-linear-to-r/oklab from-[#0f2027] via-[#203a43] to-[#2c5364]
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="#0f2027"/><stop offset="3.57%" stop-color="#102229"/><stop offset="7.14%" stop-color="#11242b"/><stop offset="10.71%" stop-color="#13252d"/><stop offset="14.29%" stop-color="#14272f"/><stop offset="17.86%" stop-color="#152931"/><stop offset="21.43%" stop-color="#162b33"/><stop offset="25%" stop-color="#172d35"/><stop offset="28.57%" stop-color="#192f37"/><stop offset="32.14%" stop-color="#1a3039"/><stop offset="35.71%" stop-color="#1b323b"/><stop offset="39.29%" stop-color="#1c343d"/><stop offset="42.86%" stop-color="#1d363f"/><stop offset="46.43%" stop-color="#1f3841"/><stop offset="50%" stop-color="#203a43"/><stop offset="53.57%" stop-color="#213c45"/><stop offset="57.14%" stop-color="#223d48"/><stop offset="60.71%" stop-color="#233f4a"/><stop offset="64.29%" stop-color="#23414c"/><stop offset="67.86%" stop-color="#24434f"/><stop offset="71.43%" stop-color="#254551"/><stop offset="75%" stop-color="#264653"/><stop offset="78.57%" stop-color="#274856"/><stop offset="82.14%" stop-color="#284a58"/><stop offset="85.71%" stop-color="#294c5a"/><stop offset="89.29%" stop-color="#294e5d"/><stop offset="92.86%" stop-color="#2a4f5f"/><stop offset="96.43%" stop-color="#2b5162"/><stop offset="100%" stop-color="#2c5364"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "moonlit-asteroid": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.059,
            0.125,
            0.153
          ],
          "hex": "#0f2027"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.125,
            0.227,
            0.263
          ],
          "hex": "#203a43"
        },
        "position": 0.5
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.173,
            0.325,
            0.392
          ],
          "hex": "#2c5364"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(90deg in oklab, #0f2027 0%, #203a43 50%, #2c5364 100%)",
        "interpolation": "oklab",
        "angle": 90,
        "name": "Moonlit Asteroid",
        "contrast": {
          "white": {
            "ratio": 8.306,
            "at": 1,
            "passesAA": true,
            "passesAALarge": true
          },
          "black": {
            "ratio": 1.256,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Moonlit Asteroid (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 Moonlit Asteroid gradient (#0f2027, #203a43, #2c5364), 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