# #402a8d

A color — cool, modern. Deterministic analysis from BrandSweets (no inference).

## Values

- Hex: `#402a8d`
- RGB: rgb(64, 42, 141)
- HSL: hsl(253, 54%, 36%)
- OKLCH: oklch(0.376 0.155 286.6)
- Relative luminance: 0.0467
- Nearest named color: Galactic Civilization (#442288, Δ 1.888) — https://brandsweets.com/colors/galactic-civilization
- Moods: cool, modern
- Page: https://brandsweets.com/colors/402a8d

## Tints & shades

- Tints (toward white): #4a31a5, #5538bc, #694eca, #7d66d1, #917dd8, #a595df, #b9ade6, #d0c8ef, #e4e0f6, #f8f7fd
- Shades (toward black): #3a2782, #352376, #2e1e66, #291b5a, #23174f, #1e1443, #191037, #120c27, #0c081b, #070510

## Harmonies

- Complementary: #788d2a
- Analogous: #2a468d, #712a8d
- Triadic: #8d402a, #2a8d40
- Split-complementary: #8d712a, #468d2a
- Tetradic: #8d2a46, #788d2a, #2a8d71

## Colors that go with #402a8d

Named partners (harmony on the OKLCH wheel, co-occurrence in curated palettes and brand systems, and the neutrals that carry it), best first:

- **Charcoal** #36454f [role, pool] — Charcoal is the text near-black for #402a8d: softer than #000 and cool enough to feel like part of the same palette. Seen in: dbt Labs (https://brandsweets.com/colors/brands/getdbt-com), Boeing (https://brandsweets.com/colors/brands/boeing-com), Hinge (https://brandsweets.com/colors/brands/hinge-co), Tumblr (https://brandsweets.com/colors/brands/tumblr-com). — https://brandsweets.com/colors/charcoal
- **Denim** #1560bd [harmony, pool: analogous] — Denim is #402a8d's neighbour on the wheel, so the two read as one family — use it for hover states, gradients and secondary surfaces. Seen in: Warbyparker (https://brandsweets.com/colors/brands/warbyparker-com), Unilever (https://brandsweets.com/colors/brands/unilever-com), Hasbro (https://brandsweets.com/colors/brands/hasbro-com), Panasonic (https://brandsweets.com/colors/brands/panasonic-com). — https://brandsweets.com/colors/denim
- **Blue** #0000ff [pool] — 5 real palettes, including Procter & Gamble's brand system and Zillow's brand system put Blue beside #402a8d, as the supporting colour. Seen in: Procter & Gamble (https://brandsweets.com/colors/brands/pg-com), Zillow (https://brandsweets.com/colors/brands/zillow-com), CVS (https://brandsweets.com/colors/brands/cvs-com), Alaska Airlines (https://brandsweets.com/colors/brands/alaskaair-com). — https://brandsweets.com/colors/blue
- **Crimson** #dc143c [pool] — Crimson is paired with #402a8d in 7 real palettes, including Casper Sleep's brand system and Walgreens's brand system, as the lead colour. Seen in: Casper Sleep (https://brandsweets.com/colors/brands/casper-com), Walgreens (https://brandsweets.com/colors/brands/walgreens-com), Wells Fargo (https://brandsweets.com/colors/brands/wellsfargo-com), Marvel (https://brandsweets.com/colors/brands/marvel-com). — https://brandsweets.com/colors/crimson
- **Royal Blue** #4169e1 [pool] — Royal Blue is paired with #402a8d in 8 real palettes, including Nokia's brand system and Discord's brand system, as the supporting colour. Seen in: Nokia (https://brandsweets.com/colors/brands/nokia-com), Discord (https://brandsweets.com/colors/brands/discord), Nivea (https://brandsweets.com/colors/brands/nivea-com), Confluent (https://brandsweets.com/colors/brands/confluent-io). — https://brandsweets.com/colors/royalblue
- **Steel Blue** #4682b4 [pool] — Designers have shipped Steel Blue with #402a8d: 5 real palettes, including FedEx's brand system and Fintech Trust, as the accent. Seen in: FedEx (https://brandsweets.com/colors/brands/fedex-com), Fintech Trust (https://brandsweets.com/palettes/cool#fintech-trust), Hershey's (https://brandsweets.com/colors/brands/hersheys-com), Glacier (https://brandsweets.com/palettes/cool#glacier). — https://brandsweets.com/colors/steelblue
- **Tomato** #ff6347 [pool] — 6 real palettes, including dbt Labs's brand system and FedEx's brand system put Tomato beside #402a8d, as the lead colour. Seen in: dbt Labs (https://brandsweets.com/colors/brands/getdbt-com), FedEx (https://brandsweets.com/colors/brands/fedex-com), Harley-Davidson (https://brandsweets.com/colors/brands/harley-davidson-com), Golden Hour (https://brandsweets.com/palettes/warm#golden-hour). — https://brandsweets.com/colors/tomato
- **Olive Green** #808000 [harmony: complementary] — Olive Green sits directly opposite #402a8d on the wheel — the strongest contrast one hue can give another, so use it small: a button, a link colour, one highlight. — https://brandsweets.com/colors/olive

## Contrast (WCAG 2.x, as text)

- On white (#ffffff): 10.86:1 — AA pass, AA-large pass, AAA pass
- On black (#000000): 1.93:1 — AA fail, AA-large fail, AAA fail. Fix: AA: text → #7d66d1 (4.69:1); AA: background → #a8a8a8 (4.57:1); AAA: text → #9b89dc (7.01:1); AAA: background → #d1d1d1 (7.11:1)

## Fonts for this mood

- modern: https://brandsweets.com/fonts/mood/modern

## Palette tool

Open this color locked as the lead with four explored companions: https://brandsweets.com/palettes/new/402a8d-a99cc4-dfb84e-281f2d-e9ebf1?lock=0&style=vibrant
(Humans lock/regenerate in the tool; the URL is the state — read `lock=` back to see what they kept.)

## Connect an agent

Point any MCP client at the BrandSweets colors endpoint for the same engine:

- Endpoint: https://mcp.brandsweets.com/colors/mcp
- Tools: `analyze_color` (e.g. `analyze_color({ color: "#402a8d" })`), `check_contrast` (with fixes), `generate_palette` (explore around locks), `suggest_palette` (mood/industry → curated-first), `list_palettes`.
