Color

#402fac

#402fac
hex#402fac
rgbrgb(64, 47, 172)
hslhsl(248, 57%, 43%)
oklchoklch(0.413 0.188 280.4)
Closest name: Bluebell (#333399)Relative luminance 0.061

Tints & shades

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

Harmonies

Complementary

Open in tool →

#9bac2f

#2f5dac · #7e2fac

#ac402f · #2fac40

Split-complementary

Open in tool →

#ac7e2f · #5dac2f

#ac2f5d · #9bac2f · #2fac7e

Contrast

#402fac as textRatioAAAA largeAAAFix
Aaon white
9.46:1passpasspassPasses AAA — no fix needed.
Aaon black
2.22:1failfailfail
  • AA: use #7667d5 as the text (4.67:1)
  • AAA: use #968bdf as the text (7.06:1)
  • AA: or shift the background to #b3b3b3 (4.51:1)
  • AAA: or shift the background to #dedede (7.03:1)

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

Brands using this color

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

Fonts for this mood

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

mcpConnect your agent — build around #402fac
live endpoint

Point any MCP client at the shared colors endpoint and your agent gets the same engine as this page — generate_palette, check_contrast, analyze_color — read-only, no key. Every palette it proposes comes with a /palettes/new/… link: open it, lock what you like, paste the link back.

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

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

tool url/palettes/new/402fac-a69cc4-dfac4e-271f2d-e9ecf1?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