Midnight is CSS midnightblue: #191970, rgb(25, 25, 112). Unlike pure dark blue it carries a little red and green, which softens the colour and makes it read as night sky rather than signal blue. The blue channel at 112 still dominates, giving a hue of 240° and a lightness of about 27 percent.
What a midnight screen is good for
- Window light for night scenes. Placed out of frame behind a subject, a midnight screen imitates a moonlit window on cheap cameras surprisingly well.
- Planetarium-style ambience. Paired with a star overlay, it is easier on the eye than pure black and more natural than saturated blue.
- Dark theme accents. Midnight is a good reference for headers or code blocks that should feel blue without shouting.
- Checking blue banding. Gradients near this hue are prone to visible steps on 6-bit panels; a flat field helps you separate banding from dirty-screen effect.
When to pick something else
As with any blue-dominant light, skip midnight in the hour before bed if you can. It is also a poor colour for detecting blue subpixel faults, because the small red and green content hides isolated specks. Use dark blue for that.
Contrast
White on #191970 measures about 14.9:1. Warm yellows, like #F5C542, stay legible and look natural against it, which is why night-themed interfaces pair the two.