Color

#040ecd

#040ecd
hex#040ecd
rgbrgb(4, 14, 205)
hslhsl(237, 96%, 41%)
oklchoklch(0.391 0.261 264.6)
Closest name: mediumblue (#0000cd)Relative luminance 0.0475

Tints & shades

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

Harmonies

Complementary

Open in tool →

#cdc304

#0473cd · #5f04cd

#cd040e · #0ecd04

Split-complementary

Open in tool →

#cd5f04 · #73cd04

#cd0473 · #cdc304 · #04cd5f

Contrast

#040ecd as textRatioAAAA largeAAAFix
Aaon white
10.77:1passpasspassPasses AAA — no fix needed.
Aaon black
1.95:1failfailfail
  • AA: use #5a62fc as the text (4.59:1)
  • AAA: use #878dfd as the text (7.26:1)
  • AA: or shift the background to #a8a8a8 (4.53:1)
  • AAA: or shift the background to #d1d1d1 (7.05:1)

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

Brands using this color

Fonts for this mood

#040ecd reads as cool, vivid, technical. The font library is tagged with the same vocabulary:

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

tool url/palettes/new/040ecd-9f9cc4-df924e-251f2d-e9edf1?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