Midnight Blue (#191970)
The hex code for Midnight Blue is #191970. It is rgb(25, 25, 112) in RGB, hsl(240, 64%, 27%) in HSL, and about cmyk(78%, 78%, 0%, 56%) in CMYK — a dark blue. White text is the more readable choice on this background.
#191970rgb(25, 25, 112)hsl(240, 64%, 27%)hsv(240, 78%, 44%)cmyk(78%, 78%, 0%, 56%)oklch(28.8% 0.144 272.8)lab(14.93% 25.96 -50.90)lch(14.93% 57.14 297.02)Colors Closest to Midnight Blue
Midnight Blue is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.
Browse the full index of named colors A-Z or every blue in the library.
#191970 Channel Values
How Midnight Blue breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.
| Model | Channels | Notes |
|---|---|---|
| RGB | R 25 · G 25 · B 112 | 8-bit channels as sent to the display |
| HSL | H 240° · S 64% · L 27% | Easiest model for building lighter and darker variants |
| HSV | H 240° · S 78% · V 44% | Matches the picker in most design tools |
| CMYK | C 78% · M 78% · Y 0% · K 56% | Approximate ink mix; confirm with an ICC profile before printing |
| Luminance | 14.85:1 vs white · 1.41:1 vs black | WCAG 2.2 relative-luminance contrast ratios |
Text Contrast & Accessibility
WCAG 2.2 contrast ratios for text on a Midnight Blue background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.
Need a specific ratio against another background? Open #191970 in the contrast checker.
Colors That Go With Midnight Blue
Pairings derived from color-wheel relationships. The complementary color sits opposite Midnight Blue; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.
Tints & Shades of Midnight Blue
Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.
Want a full 50-950 ramp with semantic roles? Generate design tokens from #191970.
How Midnight Blue Looks with Color Vision Deficiency
Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.
#191970#191970#191970#191970#191970#002F2F#002851#272727Using #191970 in Code
Copy-ready declarations for the places this color usually ends up.
--midnight-blue: #191970;background-color: #191970;colors: { 'midnight-blue': '#191970' }Color(red: 0.098, green: 0.098, blue: 0.439)<color name="midnight_blue">#191970</color>fill="#191970"More Blue Colors
Midnight Blue sits in the blue family. These are its neighbours across that family's full range, each with its own breakdown.
#191970 Frequently Asked Questions
What is the hex code for Midnight Blue?
The hex code for Midnight Blue is #191970. That is rgb(25, 25, 112) in RGB, hsl(240, 64%, 27%) in HSL, and approximately cmyk(78%, 78%, 0%, 56%) in CMYK.
What is the RGB value of #191970?
#191970 is rgb(25, 25, 112) — red 25, green 25, and blue 112 on the 0-255 scale.
What is the CMYK value of #191970?
#191970 converts to approximately cmyk(78%, 78%, 0%, 56%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.
Should text on #191970 be black or white?
White text is the more readable choice. #191970 scores 14.85:1 against white and 1.41:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.
Is MidnightBlue a CSS named color?
Yes. MidnightBlue is one of the CSS named colors, so you can write color: midnightblue instead of the hex code.
Open Midnight Blue in a Tool
Keep exploring: every blue in the color library, the guide to shades of blue, or the full color library.