Midnightblue colour (#191970)

Midnightblue is dark a blue with hex code #191970, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 25, 25, 112; in HSL 240°, 64%, 27%. Use the tool to explore shades and harmonies.

✓ Runs in your browser — nothing uploaded Free, no sign-upNo watermark

How to use the Midnightblue colour

  1. The colour is pre-filled; click Explore to see all formats, shades and harmonies.
  2. Edit the value to try a variation.
  3. Copy the code you need.

Midnightblue in every format

FormatValue
HEX#191970
RGBrgb(25, 25, 112)
RGB (0–1)0.098, 0.098, 0.439
HSLhsl(240, 64%, 27%)
CMYK (approx.)78%, 78%, 0%, 56%
CSScolor: midnightblue;

Shades and tints of Midnightblue

Same hue and saturation, lightness from 90% to 10%:

#d5d5f6 #ababed #8282e3 #5858da #2e2ed1 #2525a7 #1c1c7d #121254 #09092a

Colours that go with Midnightblue

HarmonyColours
Complementary #717119
Triadic #711919 #197119
Analogous #451971 #194571

Similar named colours

The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:

ColourHEXDifference
navy #000080close
darkblue #00008bclose
indigo #4b0082close
darkslateblue #483d8bclose
darkslategray #2f4f4fclose

Accessibility

Contrast ratio of Midnightblue against white is 14.85:1 (passes WCAG AA for normal text) and against black 1.41:1 (fails). Use Midnightblue for text on white backgrounds.

Frequently asked questions

What is the hex code for Midnightblue?

#191970.

What is Midnightblue in RGB?

rgb(25, 25, 112).

What colour is complementary to Midnightblue?

#717119, directly opposite on the colour wheel.

Privacy

This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.

Last updated 2026-09-23.