graf1x

Blue and MidnightBlue

Analogous color combination with 1.73:1 contrast ratio

#0000FF
#191970

Color Values

Blue
HEX #0000FF
RGB 0, 0, 255
HSL 240, 100%, 50%
MidnightBlue
HEX #191970
RGB 25, 25, 112
HSL 240, 64%, 27%

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 Blue and MidnightBlue is 0 degrees. You can explore these relationships interactively in our Color Wheel Tool.

WCAG Contrast

1.73:1
Blue background with MidnightBlue text
Below AA — decorative use only

UI Preview

Blue surface

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

MidnightBlue surface

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

Design Tokens

CSS Variables

:root {
  --color-a: #0000FF;
  --color-b: #191970;
  --color-a-rgb: 0, 0, 255;
  --color-b-rgb: 25, 25, 112;
}

JSON

{
  "name": "Blue and MidnightBlue",
  "colors": [
    {
      "name": "Blue",
      "hex": "#0000FF",
      "rgb": [
        0,
        0,
        255
      ]
    },
    {
      "name": "MidnightBlue",
      "hex": "#191970",
      "rgb": [
        25,
        25,
        112
      ]
    }
  ],
  "harmony": "Analogous",
  "contrastRatio": 1.73
}

Explore These Colors

Frequently Asked Questions

Do blue and midnightblue go together?

Yes. Blue and MidnightBlue 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 1.73:1, which is below the AA threshold for text — use it for decorative purposes rather than text readability.

What is the contrast ratio between blue and midnightblue?

The WCAG 2.1 contrast ratio between Blue (#0000FF) and MidnightBlue (#191970) is 1.73:1. This ratio is below AA. Use the pairing for backgrounds, borders, and decorative elements rather than text-on-background combinations.

How do I use blue and midnightblue 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 blue and midnightblue?

Blue has the hex code #0000FF and RGB values rgb(0, 0, 255). MidnightBlue has the hex code #191970 and RGB values rgb(25, 25, 112). You can copy these directly into CSS or use the design tokens provided on this page.