EN

Two Color Combinations: 18 Pairs With HEX Codes and Contrast Ratios

Two overlapping paint swatches in deep navy and warm coral on an ivory desk beside a brush

Quick Answer

A good two-color combination pairs one color that carries the content with one that frames it, and the pair needs enough contrast to be read. Use a dark color on a light one, or the reverse, and aim for at least 4.5:1 for body text. Below are 18 pairs with HEX codes and contrast ratios computed for this guide, labeled by what each pair can safely do.

On this page
  1. What makes a good two-color combination?
  2. How do you pair two colors: complementary, analogous or light and dark?
  3. What does contrast ratio mean for a pair?
  4. Which two-color pairs work for text on a light background?
  5. Which pairs work as light text on a dark background?
  6. Which pairs are borderline, and which should you avoid?
  7. How do you use two colors on a real page?
  8. Frequently Asked Questions
  9. Our Take
  10. Sources

Key Takeaways

  • A two-color scheme works when each color has a job: one is the surface, the other is the text or accent.
  • Contrast decides whether a pair can hold text. WCAG asks for 4.5:1 for normal text and 3:1 for large text.
  • A pair can look great and still be for accents only. Check the ratio before putting words on it.
  • Never rely on hue alone to separate two meanings, such as red and green.
  • Use the HEX codes here as starting points, then test them in the contrast checker.

What makes a good two-color combination?

Two colors give you a surface and a voice. The surface is usually the lighter or calmer color, and the voice is the one used for text, links or buttons. The pair works when the eye can tell them apart quickly and the result still feels like one design.

Three things decide that. Contrast is how different the two are in lightness. Harmony is how their hues relate on the color wheel. Role is what each color is asked to do on the page. Most failed pairs fail on contrast, not hue. A soft pink on a soft lavender can look lovely in a swatch and be unreadable as text.

Designers in the UK search for "colour combinations", and the ideas here are the same. If you want one color and need its partner, the palette generator can suggest candidates, and you can come back here to judge the pair.

How do you pair two colors: complementary, analogous or light and dark?

There are three dependable methods, and each one gives a different mood.

Color wheel with two pairing methods A twelve-hue color wheel. A line draws across the wheel between two opposite hues (complementary), then a short arc links two neighboring hues (analogous). The finished drawing keeps both marks. Complementary opposite sides: strong energy Analogous neighbors: calm and tidy
Two ways to pair hues on a 12-step wheel: opposite hues (complementary) and neighbors (analogous).

Complementary pairs sit on opposite sides of the wheel, such as blue and orange. They vibrate against each other, so they suit a calm surface with one lively accent. Try the complementary colors tool to find the opposite of any HEX code. Analogous pairs are neighbors, such as teal and blue-green. They feel calm and unified, and they need a lightness gap to stay readable. The analogous colors tool lists the neighbors.

Light and dark pairs ignore hue and focus on lightness: one very dark color, one very light color. They are the safest base for reading. The second table below shows many of these. Hue relationships give the mood, but lightness difference is what makes a pair readable.

What does contrast ratio mean for a pair?

Contrast ratio is a number from 1:1 (no difference) to 21:1 (black on white) that compares the relative luminance of two colors. The Web Content Accessibility Guidelines (WCAG) set the bar for text: at least 4.5:1 for normal text, and at least 3:1 for large text, which means at least 18 point, or 14 point bold [1].

Contrast scale from 1:1 to 21:1 with six example pairs A bar runs from 1:1 to 21:1 with marks at 3:1, 4.5:1 and 7:1. The bar fills left to right, then six example pairs appear one by one at their computed ratios. The finished drawing shows all six. 1:1 3 4.5 7 21:1 3 large text, 4.5 body text AA, 7 AAA 1.904.224.736.408.9115.86
Six example pairs placed on the 1:1 to 21:1 scale, with the 3, 4.5 and 7 thresholds marked.

Every ratio in this guide was computed with the SwatchNest color core and is shown truncated to two decimals, never rounded up. A pair at 4.499:1 is shown as 4.49:1 and fails, because rounding up would hide the failure. The labels in the tables use three plain categories:

  • Text-safe (AA): at least 4.5:1, fine for body text.
  • Large text only: at least 3:1 but under 4.5:1, so headings and big buttons only.
  • Accent only: under 3:1, so decoration, never text.

Passing AA is a floor, not a guarantee that every reader finds the pair comfortable. These numbers stay inside WCAG 2.x. A newer method called APCA appears in a working draft of WCAG 3 and is not a requirement.

Which two-color pairs work for text on a light background?

These pairs put a dark named color on a pale one. Names such as navy, ivory, teal, indigo and maroon are also CSS named colors [4]. All seven pass AA for normal text, and the first five also pass AAA (7:1). Named colors link to their pages where one exists.

Text colorBackgroundRatioBest use
Navy blue #000080Ivory #FFFFF015.86:1Text-safe (AA, AAA). Long reading, documentation.
Indigo #4B0082Lavender #E6E6FA10.52:1Text-safe (AA, AAA). Calm editorial sites.
Taupe #483C32Beige #F5F5DC9.64:1Text-safe (AA, AAA). Warm, earthy blogs.
Maroon #800000Peach #FFE5B48.92:1Text-safe (AA, AAA). Food and hospitality.
Burgundy #800020Champagne #F7E7CE8.91:1Text-safe (AA, AAA). Wine, events, weddings.
Hunter green #355E3BPeach #FFE5B46.07:1Text-safe (AA). Outdoor and wellness brands.
Cobalt blue #0047ABLight blue #ADD8E65.52:1Text-safe (AA). Banners and info panels.

If you want a calm default, the first pair is hard to beat. Dark navy on ivory is softer than black on white and still easy to read at any size.

Which pairs work as light text on a dark background?

Dark surfaces suit headers, footers, hero sections and dark mode. Here the lighter color carries the words.

Text colorBackgroundRatioBest use
Chartreuse #7FFF00Indigo #4B00829.99:1Text-safe (AA, AAA). Bold tech and gaming.
Turquoise #40E0D0Navy blue #0000809.75:1Text-safe (AA, AAA). Dashboards, finance.
Periwinkle #CCCCFFIndigo #4B00828.41:1Text-safe (AA, AAA). Soft dark themes.
Light pink #FFB6C1Burgundy #8000206.55:1Text-safe (AA). Boutique and beauty.
Coral #FF7F50Navy blue #0000806.40:1Text-safe (AA). Accent words on dark.
Khaki #F0E68CHunter green #355E3B5.82:1Text-safe (AA). Nature and travel.
Tan #D2B48CTaupe #483C325.41:1Text-safe (AA). Rustic, craft brands.
Hot pink #FF69B4Indigo #4B00824.89:1Text-safe (AA, barely). Short labels only.

Hot pink on indigo clears 4.5:1 by a small margin. Keep it to labels and short headings, and avoid thin fonts, which look weaker at the same ratio.

Which pairs are borderline, and which should you avoid?

Some pairs look fine and sit right at the edge. Others fail by a wide margin.

Color AColor BRatioLabel
Teal #008080Ivory #FFFFF04.73:1Text-safe (AA). Close to the line, so test your font.
Crimson #DC143CCream #FFFDD04.80:1Text-safe (AA). Fine for alerts and prices.
Forest green #228B22Cream #FFFDD04.22:1Large text only. Fails for body copy.
Salmon #FA8072Teal #0080801.90:1Accent only. Do not put text on it.
Lilac #C8A2C8Plum #DDA0DD1.07:1Accent only. Nearly the same lightness.
Crimson #DC143CForest green #228B221.13:1Accent only. Also a classic red-green trap.

The last row deserves attention. Red and green at similar lightness are hard to separate for many people with color vision deficiency, and they also fail contrast. WCAG Success Criterion 1.4.1 says color must not be the only visual means of conveying information, which includes distinguishing one element from another [2]. Add an icon, a label or a pattern next to the color.

Hue also matters less than people expect. Teal and ivory, a cool and a warm color, still land at only 4.73:1. The pair works because ivory is very light and teal is fairly dark, not because of any color theory.

How do you use two colors on a real page?

Give each color one clear job, and add a third neutral only if you must. On the sample page below, ivory is the surface, navy is every piece of text, and coral appears once, as the button fill.

Two colors, three jobs on one page A page wireframe in navy and ivory. The ivory page background appears first, then navy text blocks, then a coral accent button. The finished drawing shows all three roles with labels. Sign up Ivory #FFFFF0the surface (about 60%) Navy #000080the text (15.86:1) Coral #FF7F50button fill, text stays navy
A two-color page: ivory surface, navy text, and one coral accent for the call to action.

A few rules keep a two-color page honest:

  1. Choose the surface first. About 60 percent of the page should be one calm color, a common rule of thumb from interface design, not a standard.
  2. Put text in the darker or lighter of the two, never in the accent. Here the button label stays navy: navy on coral is 6.40:1, which passes.
  3. Check non-text parts too. WCAG 1.4.11 asks for 3:1 on parts of controls such as input borders and icons [3].
  4. Use tints for extra shades. Mixing a color with its partner gives you steps without adding a third hue.
  5. Test the pair in context. Gradients, images and thin fonts change how a ratio feels.

If you want to confirm any pair from this page, paste both HEX codes into the contrast checker. To browse more named shades first, start at the color library. Our HEX codes reference explains how the six-digit codes are built.

Frequently Asked Questions

What are the best two colors to use together?

For text, a dark navy on ivory (15.86:1) is a safe starting point. For a livelier look, pair a calm surface with one accent from the other side of the color wheel. The best pair is the one that passes contrast for the job you give it.

Can any two colors form a two-color scheme?

Any two colors can be paired, but not every pair can hold text. If the ratio is under 3:1, use it for decoration only. Between 3:1 and 4.49:1 it suits large text. From 4.5:1 up, it can carry body text under WCAG AA.

Is it okay to use red and green together?

Only if something other than hue separates them, such as lightness, an icon or a label. Crimson on forest green is 1.13:1 here, so the two blend for many readers and fail contrast.

Should the accent color ever carry text?

Rarely. Save accents for fills, borders and highlights, and keep the text in the surface or ink color. If an accent must carry text, check that exact pair first.

Our Take

We think the strongest two-color schemes are plain ones: a very dark color, a very light color, and one lively accent used sparingly. It is tempting to pick two pretty hues and hope, but contrast is the part of a pair that readers actually notice. We would start every project from a text-safe pair in the first two tables, then add a single accent from the borderline table only for buttons and highlights. This is our opinion, not a rule from any standard. The ratios, though, are numbers you can verify yourself in a few seconds with the checker. Treat every pair here as a starting point, and test it with your own fonts, sizes and content before you ship.

Sources

  1. Understanding Success Criterion 1.4.3: Contrast (Minimum). W3C.
  2. Understanding Success Criterion 1.4.6: Contrast (Enhanced). W3C.
  3. Web Content Accessibility Guidelines (WCAG) 2.2. W3C, 2023.
  4. CSS Color Module Level 4: Named Colors. W3C.

Color values are shown in sRGB. Contrast results follow WCAG 2.x and do not cover every accessibility need. Spotted an error? Tell us.