graf1x

Gold and MidnightBlue

Complementary color combination with 10.59:1 contrast ratio

#FFD700
#191970

Color Values

Gold
HEX #FFD700
RGB 255, 215, 0
HSL 51, 100%, 50%
MidnightBlue
HEX #191970
RGB 25, 25, 112
HSL 240, 64%, 27%

Harmony: Complementary

These colors sit opposite each other on the wheel, producing maximum visual contrast. Complementary pairings are vibrant and attention-grabbing, but a 70/30 split keeps them from shouting.

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

WCAG Contrast

10.59:1
Gold background with MidnightBlue text
AAA all sizes

UI Preview

Gold surface

Sample text on a gold 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: #FFD700;
  --color-b: #191970;
  --color-a-rgb: 255, 215, 0;
  --color-b-rgb: 25, 25, 112;
}

JSON

{
  "name": "Gold and MidnightBlue",
  "colors": [
    {
      "name": "Gold",
      "hex": "#FFD700",
      "rgb": [
        255,
        215,
        0
      ]
    },
    {
      "name": "MidnightBlue",
      "hex": "#191970",
      "rgb": [
        25,
        25,
        112
      ]
    }
  ],
  "harmony": "Complementary",
  "contrastRatio": 10.59
}

Explore These Colors

Frequently Asked Questions

Do gold and midnightblue go together?

Yes. Gold and MidnightBlue form a complementary color combination. These colors sit opposite each other on the wheel, producing maximum visual contrast. Complementary pairings are vibrant and attention-grabbing, but a 70/30 split keeps them from shouting. The pairing has a WCAG contrast ratio of 10.59:1, which passes AA for large text and UI components.

What is the contrast ratio between gold and midnightblue?

The WCAG 2.1 contrast ratio between Gold (#FFD700) and MidnightBlue (#191970) is 10.59:1. This passes AAA for all text sizes.

How do I use gold 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. Since these are complementary colors, lean toward a 70/25/5 split to keep the contrast from becoming overwhelming. Test the result with our Contrast Checker if text is involved.

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

Gold has the hex code #FFD700 and RGB values rgb(255, 215, 0). 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.