Profound Authoritative Cosmic Dark Blue Category: Blue

Midnight Blue (#191970) — Color Codes, Meaning & UI Palettes

Midnight Blue (#191970) is an intensely dark shade of blue that appears almost black under dim light, popularized by the Duke of Windsor as a deeper, richer alternative to black for evening wear. It conveys supreme authority, formality, and deep focus.

Quick Answer (Midnight Blue Color Code): The exact HEX code for Midnight Blue is #191970. In RGB, it is rgb(25, 25, 112). In HSL, it is hsl(240deg, 64%, 27%), and its print CMYK formulation is cmyk(78%, 78%, 0%, 56%). It has a relative luminance of 0.021 and pairs best in UI design with Pure White (#FFFFFF) and Liquid Gold (#F59E0B).
Click to Copy HEX
Midnight Blue
#191970
HEX
#191970
RGB
rgb(25, 25, 112)
HSL
hsl(240deg, 64%, 27%)
CMYK (Print)
cmyk(78%, 78%, 0%, 56%)
Apple Display P3
color(display-p3 0.098 0.098 0.439)

WCAG 2.1 Accessibility & Contrast Rating

White Text (#FFFFFF) 14.79:1 (AAA)
Black Text (#000000) 1.42:1 (Fail)

11-Step Tints & Shades Scale (Tailwind 50–950)

Mathematically balanced luminance scale for design tokens and CSS color palettes. Click any shade to copy hex code:

50
#EEEEFB
100
#DEDEF8
200
#BCBCF0
300
#9292E7
400
#6060DC
500
#191970
600
#14145D
700
#101049
800
#0C0C36
900
#080824
950
#040414

Color Harmonies & Palette Schemes

Complementary

#717119
Opposite 180° Contrast

Analogous -30°

#194571
Natural Harmony

Analogous +30°

#451971
Natural Harmony

Triadic +120°

#711919
120° Balanced Triad

Triadic +240°

#197119
120° Balanced Triad

Curated UI Design Pairings for Midnight Blue

Flawless dark-mode background and header bar color for enterprise software, legal firms, and banking platforms. AAA accessibility with pure white and amber accents.

Pure White
#FFFFFF
Pristine AAA Text Contrast
Liquid Gold
#F59E0B
Executive Royal Accent
Cool Starlight Gray
#F1F5F9
Modern Card Surface
Deep Space Obsidian
#0A0A1F
Immersive Gradient Base

Export Midnight Blue Code Snippets

CSS Variable --color-midnight-blue: #191970;
Tailwind Config 'midnight-blue': '#191970'
Swift / SwiftUI Color(hex: "#191970")
JSON Design Token {"name": "Midnight Blue", "hex": "#191970"}

Frequently Asked Questions About Midnight Blue (#191970)

What is the exact HEX code for Midnight Blue?

The exact HEX code for Midnight Blue is #191970. In 8-digit hexadecimal (with 100% opacity), it is #191970FF. Its RGB decimal equivalent is rgb(25, 25, 112) and its HSL value is hsl(240deg, 64%, 27%).

What colors go best with Midnight Blue in UI and web design?

Midnight Blue pairs exceptionally well with Pure White (#FFFFFF), Liquid Gold (#F59E0B), Cool Starlight Gray (#F1F5F9), and Deep Space Obsidian (#0A0A1F).

How do I use Midnight Blue in CSS and Tailwind CSS?

In standard CSS, apply it directly via color: #191970; or background-color: #191970;. In Tailwind CSS, use arbitrary value syntax like bg-[#191970] or text-[#191970], or define it in your Tailwind v4 @theme block as --color-midnight-blue: #191970;.

Is Midnight Blue WCAG accessible for readable text?

Against a pure white background (#FFFFFF), Midnight Blue achieves a contrast ratio of 14.79:1 (AAA). Against a pure black background (#000000), it achieves 1.42:1 (Fail). Check custom contrast pairings on Pikka's WCAG Contrast Checker.

Explore More Colors in the Dictionary

Browse our complete catalog of curated named colors, harmonic palettes, and accessible UI combinations.

Named Color Dictionary Interactive Color Wheel Tint & Shade Generator