CSS color

midnightblue

#191970
hex#191970
rgbrgb(25, 25, 112)
hslhsl(240, 64%, 27%)
oklchoklch(0.288 0.144 272.8)
Relative luminance 0.0207

Midnightblue on this page is the real value, not a screenshot: exact hex, RGB, HSL and OKLCH, ten tints and ten shades, classic harmonies, and WCAG contrast with fixes — plus the curated palettes it appears in and any public brand that adopts it.

Tints & shades

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

Harmonies

Complementary

Open in tool →

#717119

#194571 · #451971

#711919 · #197119

Split-complementary

Open in tool →

#714519 · #457119

#711945 · #717119 · #197145

Contrast

midnightblue as textRatioAAAA largeAAAFix
Aaon white
14.85:1passpasspassPasses AAA — no fix needed.
Aaon black
1.41:1failfailfail
  • AA: use #6868de as the text (4.62:1)
  • AAA: use #8e8ee6 as the text (7.16:1)
  • AA: or shift the background to #8f8f8f (4.59:1)
  • AAA: or shift the background to #b3b3b3 (7.08:1)

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

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

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

tool url/palettes/new/191970-a19cc4-df994e-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