Color

#340a42

#340a42
hex#340a42
rgbrgb(52, 10, 66)
hslhsl(285, 74%, 15%)
oklchoklch(0.251 0.103 316)
Closest name: Dark Purple (#35063e)Relative luminance 0.0134

Tints & shades

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

Harmonies

Complementary

Open in tool →

#18430a

#180a43 · #430a34

#43340a · #0a4334

Split-complementary

Open in tool →

#34430a · #0a4318

#43180a · #18430a · #0a3443

Contrast

#340a42 as textRatioAAAA largeAAAFix
Aaon white
16.56:1passpasspassPasses AAA — no fix needed.
Aaon black
1.27:1failfailfail
  • AA: use #b533e1 as the text (4.53:1)
  • AAA: use #cc71ea as the text (7.12:1)
  • AA: or shift the background to #878787 (4.61:1)
  • AAA: or shift the background to #ababab (7.21:1)

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

#340a42 reads as cool, vivid, dark. The font library is tagged with the same vocabulary:

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

tool url/palettes/new/340a42-bc9fc1-afcb62-2d1f2b-ebe9f1?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