Color

#2f40ac

#2f40ac
hex#2f40ac
rgbrgb(47, 64, 172)
hslhsl(232, 57%, 43%)
oklchoklch(0.429 0.172 270.4)
Closest name: Cobalt Blue (#0047ab)Relative luminance 0.0725

Colors that go with #2f40ac

Charcoal, Sea Green and Steel 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.

Tints & shades

Every swatch is its own page — click any to analyze it.

Harmonies

Complementary

Open in tool →

#ac9b2f

#2f7eac · #5d2fac

#ac2f40 · #40ac2f

Split-complementary

Open in tool →

#ac5d2f · #7eac2f

#ac2f7e · #ac9b2f · #2fac5d

Contrast

#2f40ac as textRatioAAAA largeAAAFix
Aaon white
8.57:1passpasspassPasses AAA — no fix needed.
Aaon black
2.45:1failfailfail
  • AA: use #5f6ed3 as the text (4.66:1)
  • AAA: use #8793de as the text (7.26:1)
  • AA: or shift the background to #bdbdbd (4.56:1)
  • AAA: or shift the background to #ebebeb (7.19:1)

Fixes keep hue and saturation and move lightness only, so the suggestion stays on-brand. Ratios are symmetric: the same numbers apply with #2f40ac as the background.

Brands using this color

No public brand in the corpus uses this exact color yet. Extract a brand to add one.

Palettes built around it

Fonts for this mood

#2f40ac reads as cool, modern. The font library is tagged with the same vocabulary:

mcpConnect your agent — build around #2f40ac
live endpoint

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.

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

analyze #2f40ac and generate a 5-color palette that keeps it as the primary; give me the /palettes/new link

tool url/palettes/new/2f40ac-9c9dc4-df864e-231f2d-e9eef1?lock=0&style=vibrant

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

Machine-readable: color.md