graf1x

MidnightBlue and RoyalBlue

Analogous color combination with 3.06:1 contrast ratio

#191970
#4169E1

Color Values

MidnightBlue
HEX #191970
RGB 25, 25, 112
HSL 240, 64%, 27%
RoyalBlue
HEX #4169E1
RGB 65, 105, 225
HSL 225, 73%, 57%

Harmony: Analogous

These colors sit beside each other on the wheel, so the pairing feels calm and cohesive. Analogous schemes are easy on the eye and work well for gradients, backgrounds, and designs that want to feel settled rather than energetic.

The hue angle between MidnightBlue and RoyalBlue is 15 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

3.06:1
MidnightBlue background with RoyalBlue text
AA large text only

UI Preview

MidnightBlue surface

Sample text on a midnightblue background demonstrates readability and visual hierarchy.

RoyalBlue surface

Sample text on a royalblue background demonstrates readability and visual hierarchy.

Design Tokens

CSS Variables

:root {
  --color-a: #191970;
  --color-b: #4169E1;
  --color-a-rgb: 25, 25, 112;
  --color-b-rgb: 65, 105, 225;
}

JSON

{
  "name": "MidnightBlue and RoyalBlue",
  "colors": [
    {
      "name": "MidnightBlue",
      "hex": "#191970",
      "rgb": [
        25,
        25,
        112
      ]
    },
    {
      "name": "RoyalBlue",
      "hex": "#4169E1",
      "rgb": [
        65,
        105,
        225
      ]
    }
  ],
  "harmony": "Analogous",
  "contrastRatio": 3.06
}

Explore These Colors

Frequently Asked Questions

Do midnightblue and royalblue go together?

Yes. MidnightBlue and RoyalBlue form a analogous color combination. These colors sit beside each other on the wheel, so the pairing feels calm and cohesive. Analogous schemes are easy on the eye and work well for gradients, backgrounds, and designs that want to feel settled rather than energetic. The pairing has a WCAG contrast ratio of 3.06:1, which passes AA for large text but not for body text.

What is the contrast ratio between midnightblue and royalblue?

The WCAG 2.1 contrast ratio between MidnightBlue (#191970) and RoyalBlue (#4169E1) is 3.06:1. This passes AA for large text (18pt+ or 14pt+ bold) but not for normal-sized body text.

How do I use midnightblue and royalblue in design?

A safe starting point is the 60/30/10 rule: give one color about 60 percent of the surface area, the other about 30 percent, and reserve the remaining 10 percent for an accent or neutral. Because analogous colors blend naturally, you can use them in more equal proportions without visual conflict. Test the result with our Contrast Checker if text is involved.

What are the hex and RGB values for midnightblue and royalblue?

MidnightBlue has the hex code #191970 and RGB values rgb(25, 25, 112). RoyalBlue has the hex code #4169E1 and RGB values rgb(65, 105, 225). You can copy these directly into CSS or use the design tokens provided on this page.