CSS named color

Midnight Blue Color Codes, Shades and Palettes

Midnight Blue is #191970. Copy its exact codes, compare twenty computed channel steps, and build complementary, analogous, or triadic palettes.

#191970RGB 25, 25, 112HSL 240°, 64%, 27%

Midnight Blue color codes

Every format below is calculated from #191970; use the buttons to copy a code exactly.

HEX#191970
RGBrgb(25, 25, 112)
HSLhsl(240°, 64%, 27%)
CMYKcmyk(78%, 78%, 0%, 56%)

10 shades and 10 tints of Midnight Blue

These twenty steps use the original Color Lab’s channel-multiplication rule: each RGB channel is multiplied, rounded, and clamped between 0 and 255.

Darker channel steps

#03030B
#050516
#080822
#0A0A2D
#0D0D38
#0F0F43
#12124E
#14145A
#171765
#191970

Lighter channel steps

#1C1C7B
#1E1E86
#212192
#23239D
#2626A8
#2828B3
#2B2BBE
#2D2DCA
#3030D5
#3232E0

Computed harmonies and palette ideas

Companion hues use the original wheel’s exact offsets at 80% saturation and 50% lightness, so the relationship stays measurable and repeatable.

Complementary

#1919E6#E6E619

Analogous

#1919E6#8019E6#1980E6

Triadic

#1919E6#E61919#19E619

How Midnight Blue is calculated

Midnight Blue is stored as the CSS named-color keyword “midnightblue” with the six-digit value #191970. Splitting that value into red, green, and blue byte pairs produces RGB 25, 25, 112. The same channels convert to HSL 240°, 64%, 27% with the picker’s max-and-min formula, and to CMYK 78%, 78%, 0%, 56% after normalizing each channel to the zero-to-one range. All displayed HSL and CMYK components are rounded to whole numbers.

The shade series is not an invented set of labels. It multiplies the original RGB channels by factors from 0.1 through 1.0. That calculation runs from #03030B at factor 0.1 to #191970 at factor 1.0. The tint series continues the same Color Lab rule from factor 1.1 through 2.0, with clamping whenever a channel reaches 255; its last result is #3232E0. Clicking any square copies its precomputed code.

For wheel relationships, the base hue is 240 degrees. The complementary hue is 60 degrees, while the analogous companions sit 30 degrees on either side. Triadic companions are offset by 120 and 240 degrees. Like the working Color Lab wheel, those hue samples render at fixed 80% saturation and 50% lightness rather than changing Midnight Blue’s own saturation or lightness.

In the full 298-name catalog, the closest distinct RGB neighbors include Navy (#000080), Dark Blue (#00008B), Royal Blue 4 (#27408B), Indigo (#4B0082). Distance is straight-line Euclidean distance between the three sRGB channel values, with equal-hex aliases excluded. Against #191970, black text measures 1.41:1 and white text measures 14.85:1, so white gives the stronger of those two contrast results. Check the ratio required by your specific text size before publishing.

Try Midnight Blue in the Color Picker

Pick any color and instantly get HEX, RGB, HSL, and CMYK codes.

Enter a hash followed by exactly six hexadecimal digits.
HEX
RGB
HSL
CMYK
Color Shades & Tints

Frequently asked questions

What is the HEX code for Midnight Blue?

Midnight Blue is recorded here as #191970. Its RGB channels are 25, 25, 112.

What are the HSL and CMYK values for Midnight Blue?

Using the Color Lab conversion math, Midnight Blue converts to HSL 240°, 64%, 27% and CMYK 78%, 78%, 0%, 56%. Values are rounded to whole units.

Should Midnight Blue use black or white text?

Black has a 1.41:1 contrast ratio and white has a 14.85:1 ratio against Midnight Blue. The higher computed ratio is white.