Color

#40339e

#40339e
hex#40339e
rgbrgb(64, 51, 158)
hslhsl(247, 51%, 41%)
oklchoklch(0.406 0.166 281.6)
Closest name: Bluebell (#333399)Relative luminance 0.0593

Tints & shades

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

Harmonies

Complementary

Open in tool →

#919e33

#335c9e · #75339e

#9e4033 · #339e40

Split-complementary

Open in tool →

#9e7533 · #5c9e33

#9e335c · #919e33 · #339e75

Contrast

#40339e as textRatioAAAA largeAAAFix
Aaon white
9.61:1passpasspassPasses AAA — no fix needed.
Aaon black
2.19:1failfailfail
  • AA: use #7569ce as the text (4.67:1)
  • AAA: use #988fdb as the text (7.29:1)
  • AA: or shift the background to #b3b3b3 (4.58:1)
  • AAA: or shift the background to #dedede (7.14:1)

Fixes keep hue and saturation and move lightness only, so the suggestion stays on-brand. Ratios are symmetric: the same numbers apply with #40339e 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

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

mcpConnect your agent — build around #40339e
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 #40339e and generate a 5-color palette that keeps it as the primary; give me the /palettes/new link

tool url/palettes/new/40339e-a59cc4-dfaa4e-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