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.
How to use the Midnightblue colour
- The colour is pre-filled; click Explore to see all formats, shades and harmonies.
- Edit the value to try a variation.
- Copy the code you need.
Midnightblue in every format
| Format | Value |
|---|---|
| HEX | #191970 |
| RGB | rgb(25, 25, 112) |
| RGB (0–1) | 0.098, 0.098, 0.439 |
| HSL | hsl(240, 64%, 27%) |
| CMYK (approx.) | 78%, 78%, 0%, 56% |
| CSS | color: 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
| Harmony | Colours | |
|---|---|---|
| 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:
| Colour | HEX | Difference |
|---|---|---|
| navy | #000080 | close |
| darkblue | #00008b | close |
| indigo | #4b0082 | close |
| darkslateblue | #483d8b | close |
| darkslategray | #2f4f4f | close |
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.