Color
#540b9d
#540b9drgb(84, 11, 157)hsl(270, 87%, 33%)oklch(0.384 0.2 297.3)Colors that go with #540b9d
Royal Blue, Olive Green and Midnight Blue lead the list. Each partner is a real named colour with the reason it works — a wheel relationship, a neutral that carries it, or a pairing lifted from a palette or brand system that actually shipped — and every pair opens in the palette tool.
Royal Blue #4169e1
analogousshippedRoyal Blue is #540b9d's neighbour on the wheel, so the two read as one family — use it for hover states, gradients and secondary surfaces.
Olive Green #808000
complementaryOlive Green sits directly opposite #540b9d on the wheel — the strongest contrast one hue can give another, so use it small: a button, a link colour, one highlight.
Midnight Blue #191970
shipped3 real palettes, including Kraken's brand system and Blue Mono put Midnight Blue beside #540b9d, as the lead colour.
Steel Blue #4682b4
shippedDesigners have shipped Steel Blue with #540b9d: 3 real palettes, including FedEx's brand system and Hershey's's brand system, as the accent.
Teal #008080
triadicshippedTeal completes a triad with #540b9d — three hues spaced evenly round the wheel, the classic way to get energy into a palette without a clash.
Forest Green #228b22
split-complementForest Green is a split-complement of #540b9d: nearly opposite, so it still pops against it, without the vibrating edge of a true complement.
Blue Violet #8a2be2
shippedBlue Violet is paired with #540b9d in two real palettes: Taco Bell's brand system and Twitch's brand system, as the supporting colour.
Charcoal #36454f
neutralshippedCharcoal is the text near-black for #540b9d: softer than #000 and cool enough to feel like part of the same palette.
Real palettes that use #540b9d
Tints & shades
Harmonies
Contrast
| #540b9d as text | Ratio | AA | AA large | AAA | Fix |
|---|---|---|---|---|---|
Aaon white | 10.99:1 | pass | pass | pass | Passes AAA — no fix needed. |
Aaon black | 1.91:1 | fail | fail | fail |
Fixes keep hue and saturation and move lightness only, so the suggestion stays on-brand. Ratios are symmetric: the same numbers apply with #540b9d as the background.
Brands using this color
Fonts for this mood
#540b9d reads as cool, vivid, technical. The font library is tagged with the same vocabulary:
Point any MCP client at the shared colors endpoint and your agent gets the same engine as this page — direct_palette, edit_direction, check_palette, check_contrast — read-only, no key. Every direction it proposes comes with a /colors/d/… link: open it, lock what you like, paste the link back, and the agent edits rather than re-rolls.
https://mcp.brandsweets.com/colors/mcpclaude mcp add --transport http brandsweets-colors https://mcp.brandsweets.com/colors/mcp
›analyze #540b9d and generate a 5-color palette that keeps it as the primary; give me the /palettes/new link
/palettes/new/540b9d-b59cc4-c9cb62-2c1f2d-eae9f1?lock=0&style=vibrantWant the agent to remember your picks and write them into a living brand? Create a free BrandSweets workspace.
Machine-readable: color.md