Named gradient · WebGradients

Perfect Blue

Perfect Blue is a blue gradient from WebGradients (MIT) — #3d4e81 → #5753c9 → #6e7ff3 at 135°. 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 3.50:1 · AA large
white 3.50 AA largeblack 2.60 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 3.50:1 at 100% (AA-large only); black ink: worst 2.60:1 at 0% (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 high: ~17px bands at 1440px — add grain 35 (≈2% soft-light noise) or shorten the ramp.

Export

css
.gradient {
  background-image: linear-gradient(135deg, #3d4e81 0%, #3f4f86 3.43%, #404f8b 6.86%, #425090 10.29%, #445095 13.71%, #46519a 17.14%, #48519f 20.57%, #4a51a5 24%, #4b52aa 27.43%, #4d52af 30.86%, #4f52b4 34.29%, #5153b9 37.71%, #5353be 41.14%, #5553c4 44.57%, #5753c9 48%, #5956cc 51.71%, #5a59cf 55.43%, #5c5cd2 59.14%, #5d60d5 62.86%, #5f63d8 66.57%, #6166db 70.29%, #6269de 74%, #646ce1 77.71%, #666fe4 81.43%, #6772e7 85.14%, #6976ea 88.86%, #6b79ed 92.57%, #6c7cf0 96.29%, #6e7ff3 100%);
  background-image: linear-gradient(135deg in oklab, #3d4e81 0%, #5753c9 48%, #6e7ff3 100%);
}
tailwind v4
bg-linear-to-br/oklab from-[#3d4e81] via-[#5753c9] via-48% to-[#6e7ff3]
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="210" y1="-210" x2="1230" y2="810"><stop offset="0%" stop-color="#3d4e81"/><stop offset="3.43%" stop-color="#3f4f86"/><stop offset="6.86%" stop-color="#404f8b"/><stop offset="10.29%" stop-color="#425090"/><stop offset="13.71%" stop-color="#445095"/><stop offset="17.14%" stop-color="#46519a"/><stop offset="20.57%" stop-color="#48519f"/><stop offset="24%" stop-color="#4a51a5"/><stop offset="27.43%" stop-color="#4b52aa"/><stop offset="30.86%" stop-color="#4d52af"/><stop offset="34.29%" stop-color="#4f52b4"/><stop offset="37.71%" stop-color="#5153b9"/><stop offset="41.14%" stop-color="#5353be"/><stop offset="44.57%" stop-color="#5553c4"/><stop offset="48%" stop-color="#5753c9"/><stop offset="51.71%" stop-color="#5956cc"/><stop offset="55.43%" stop-color="#5a59cf"/><stop offset="59.14%" stop-color="#5c5cd2"/><stop offset="62.86%" stop-color="#5d60d5"/><stop offset="66.57%" stop-color="#5f63d8"/><stop offset="70.29%" stop-color="#6166db"/><stop offset="74%" stop-color="#6269de"/><stop offset="77.71%" stop-color="#646ce1"/><stop offset="81.43%" stop-color="#666fe4"/><stop offset="85.14%" stop-color="#6772e7"/><stop offset="88.86%" stop-color="#6976ea"/><stop offset="92.57%" stop-color="#6b79ed"/><stop offset="96.29%" stop-color="#6c7cf0"/><stop offset="100%" stop-color="#6e7ff3"/></linearGradient></defs><rect width="1440" height="600" fill="url(#bs-gradient)"/></svg>
dtcg
{
  "perfect-blue": {
    "$type": "gradient",
    "$value": [
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.239,
            0.306,
            0.506
          ],
          "hex": "#3d4e81"
        },
        "position": 0
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.341,
            0.325,
            0.788
          ],
          "hex": "#5753c9"
        },
        "position": 0.48
      },
      {
        "color": {
          "colorSpace": "srgb",
          "components": [
            0.431,
            0.498,
            0.953
          ],
          "hex": "#6e7ff3"
        },
        "position": 1
      }
    ],
    "$extensions": {
      "com.brandsweets": {
        "kind": "linear",
        "css": "linear-gradient(135deg in oklab, #3d4e81 0%, #5753c9 48%, #6e7ff3 100%)",
        "interpolation": "oklab",
        "angle": 135,
        "name": "Perfect Blue",
        "contrast": {
          "white": {
            "ratio": 3.504,
            "at": 1,
            "passesAA": false,
            "passesAALarge": true
          },
          "black": {
            "ratio": 2.605,
            "at": 0,
            "passesAA": false,
            "passesAALarge": false
          },
          "suggestedInk": "#ffffff"
        }
      }
    },
    "$description": "Perfect Blue (WebGradients, 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 Perfect Blue gradient (#3d4e81, #5753c9, #6e7ff3), 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 WebGradients (MIT) — licences