On this page
Straight from the swatch they read as a toy box, a Bauhaus poster or a superhero costume. That is a character, not a flaw. This page gives you the exact codes, what the colors mix into, how to keep them readable, and four palettes that tame the trio for screens, print and rooms.
What Red, Yellow and Blue Look Like Together
Pure red, yellow and blue are the most saturated versions of each hue that a screen can show. Red and blue use a single light channel, and yellow is red plus green at full power. Side by side they feel playful, graphic and a little childlike, because most of us first met them as crayons, building blocks and picture books.
They are not evenly spaced on the digital color wheel. Red sits at 0 degrees, yellow at 60 and blue at 240, so yellow hugs red while blue sits far away on the cool side. That is why the trio feels warm-heavy with one cool anchor, and why blue usually does the calming work in a layout.
Close relatives help you tell the pure versions apart. Crimson () leans pink, scarlet () leans orange, gold () is a deeper and slightly warmer yellow, royal blue () is lighter and friendlier, and navy () is the serious end of the blue range.
Hex, RGB, HSL and CMYK Codes at a Glance
All three pure colors share the same HSL saturation (100%) and lightness (50%). Only the hue changes. The CMYK column is the plain mathematical conversion, and real print results differ, as the printing section explains.
| Color | HEX | RGB | HSL | CMYK |
|---|---|---|---|---|
| Red | 255, 0, 0 | 0°, 100%, 50% | 0, 100, 100, 0 | |
| Yellow | 255, 255, 0 | 60°, 100%, 50% | 0, 0, 100, 0 | |
| Blue | 0, 0, 255 | 240°, 100%, 50% | 100, 100, 0, 0 |
In HTML and CSS you can write the color names instead of the hex codes, so red, yellow and blue give you exactly the values above.

The shared HSL values make variations easy. Keep the hue and raise lightness to 70% and you get tints: (red), (yellow) and (blue). Those are lighter and friendlier, and they sit well as backgrounds behind the full-strength versions.
Why Red, Yellow and Blue Are the Traditional Primaries
Paint and traditional art (RYB)
In art classes, red, yellow and blue are the starting set for mixing. They are the primaries of paint, while light uses red, green and blue and print uses cyan, magenta and yellow. Bauhaus teaching and many school color wheels built their twelve-step circles on this trio, with orange, green and purple as the secondaries.
Screens (RGB) and print (CMYK)
The RYB model is a teaching shortcut, not a physical truth. Screens add light, so their primaries are red, green and blue. Printers subtract light with cyan, magenta and yellow ink, which can mix a much wider range of hues than a red and blue pigment pair ever could.
For a designer this means the trio on this page lives in two worlds. On screen, is a real primary. On paper, the same blue has to be faked with ink, which is where surprises happen.
What You Get When You Mix Red, Yellow and Blue
The traditional wheel gives three secondary colors:
- Red and yellow make orange. Averaging the two codes on screen gives , a very close match.
- Red and blue make purple. Averaging gives , again a good match.
- Yellow and blue make green in paint, but they make white when mixed as light. Average the two codes on screen and you get a flat grey near , so a green has to be chosen by hand, such as .
Mix all three in roughly equal amounts and paint turns to a muddy brown or dark grey. That is useful to know: if a painted or printed result looks dirty, you may have crossed all three primaries in the same area.
The old wheel also predicts contrast. Its complementary pairs are red and green, blue and orange, and yellow and purple. If you want the blue and orange pairing in a more modern, cooler key, see teal and orange.
Using Red, Yellow and Blue in Web and UI Design
Interfaces already use these colors as signals: blue for links and primary actions, red for errors and destructive buttons, yellow for warnings and highlights. Using the trio that way feels natural to users because they already know the code. The trick is to choose shades that behave, rather than the raw maximums.
I learned this on a children’s learning app where we started with pure primaries. The screens felt loud and tiring, and the yellow disappeared on white cards. Moving to , and on a background kept the primary-color feel and calmed everything down.
:root {
--red: #D62828;
--yellow: #FFD60A;
--blue: #1D4ED8;
--paper: #FFF8E7;
--ink: #111111;
}
.button { background: var(--blue); color: #fff; }
.alert { background: var(--paper); color: var(--ink);
border-left: 4px solid var(--yellow); }
Yellow is the awkward one. It carries energy but cannot hold white text, so give it dark text or use it as a stripe, badge or highlight. For the strongest yellow pairing, black and yellow shows how far that contrast can go.
Contrast and WCAG: Which Pairs Pass?
The preview under the heading at the top of this page scores any pair as background and text. These are the ratios I computed from the pure colors, measured against WCAG’s 4.5:1 target for normal text and 3:1 for large text and UI parts:
- Blue on white: about 8.6:1, which passes even the stricter 7:1 level.
- Red on white: about 4.0:1, which fails for body text and passes for large text.
- Yellow on white: about 1.07:1, which is effectively invisible.
- Yellow on black: about 19.6:1, excellent.
- Yellow on blue: about 8.0:1, strong and easy to read.
- Red on yellow: about 3.7:1, and red on blue: about 2.2:1, which is poor and shimmers at the edges.
Both red-on-blue and blue-on-red also vibrate visually, so avoid them for text. The cleanest pairings are yellow with blue or black, and blue with white. If pure blue feels too electric on white, a deeper tone from navy blue and white keeps the contrast with a more formal feel.
Which pure color is the best choice for body text on a white page?
Pure blue on white is about 8.6:1, while red is about 4.0:1 (just short of 4.5:1) and yellow is about 1.07:1.
On a checkout redesign I once had a white-text-on-yellow button that nobody could read in sunlight. Changing the label to lifted the ratio to above 17:1, and the button kept its color. For red text, on white is about 5.0:1, so it passes where pure red does not.
Flags, Brands and Art Built on the Trio
Flags use this palette constantly. Colombia, Ecuador and Venezuela are horizontal tricolors of yellow, blue and red, and Colombia gives the top yellow band half the flag with blue and red a quarter each. Romania, Chad and Andorra use vertical stripes of blue, yellow and red. The yellow is placed where the eye needs a bright break between the two stronger colors.
In art, Piet Mondrian’s compositions with red, blue and yellow set the pattern for the movement called De Stijl. Gerrit Rietveld’s Red Blue Chair carried the same idea into furniture, and Yves Saint Laurent turned it into the 1965 Mondrian dresses. Superman’s suit and the Google logo (with green added) show how the trio signals clarity and approachability in popular culture.
In branding, the combination turns up in toy, education and food brands, often with one color dominating. IKEA leans on blue and yellow, and LEGO pairs a red field with yellow and white details. For warmer yellow ideas to feed into this kind of palette, browse sun colors.
Red, Yellow and Blue in Interiors and Fashion
In a room, pure primaries cover too much visual ground. Pick one as the main color, usually a muted blue on a large wall or sofa, then bring in red through a chair, rug or art piece and yellow through a lamp, cushion or book spines. Mid-century and Bauhaus-inspired rooms work this way: neutral walls, wooden floors and small, confident hits of color.
In fashion, the trio shows up as color blocking: a red top, a yellow bag and blue denim is the classic outfit. Denim already gives you a soft blue, so a red jacket or yellow knit does most of the work. Keep metal and leather neutral, such as black, white or tan, so the three colors don’t compete.
For a lighter, seasonal take, softened versions of all three appear in spring color palettes, where pastel yellow and sky blue are the usual stars.
Printing the Trio: Why Blue Turns Purple
Printers use CMYK, and the screen blue sits outside that range. On a flyer proof, my electric blue came back as a flat violet that looked nothing like the monitor. The same file’s yellow printed beautifully, because pure yellow is a single ink, and the red came back slightly warmer and duller.
Your CMYK proof turns electric blue purple. What is the best first fix?
Purple comes from too much magenta, and RGB blue is outside the CMYK range, so a cyan-led mix or a spot ink gets closer.
Here is how to avoid that. Start the blue with more cyan than magenta, something like C100 M70, and check a proof, not just the screen. For a brand that must match every time, specify a spot ink, such as a Pantone color, instead of a four-color mix. Coated paper keeps the colors closer to the screen, while uncoated paper softens them.
Red from M100 Y100 behaves best when the design also has a little black or a deeper tone nearby, so it doesn’t look orange against the blue. Ask your printer for a proof on the actual stock before the full run, especially if the colors are the brand.
How to Balance Three Loud Colors
Equal amounts of red, yellow and blue look chaotic. Let one lead, one support and one accent, roughly 60-30-10, and add a neutral to rest the eye. Blue usually works best as the lead because it is calm, with red as the support and yellow as the small bright accent.
Yellow is the brightest of the three, so a little goes a long way. A thin stripe or a single button beats a yellow block.
Neutrals do the quiet work. White, cream and ink-black give the trio a frame, and mid greys work well too: see the grayscale color palette for evenly stepped greys you can borrow. You can also reduce the shock by lowering saturation, which gives dusty versions like , and .
Try this: Fill a blank page with , then place blue on 60% of the colored area, red on 30% and yellow on 10%. Next, swap which color leads and compare the mood of each version.
Ready-to-Use Red, Yellow and Blue Palettes
The four palettes below cover the main moods of the trio. Toy Box is the pure version, Bauhaus Poster is the one I reach for first on screens, Soft Primary suits gentle and young projects, and Heritage Print holds up on paper.
Pure primaries with black and white for posters and kids' graphics.

Slightly tamed primaries on warm paper, good for editorial and landing pages.
Pastel versions for nurseries, learning apps and gentle packaging.
Deeper, warmer tones that survive CMYK printing on uncoated stock.
Each has five codes you can copy straight into CSS, Figma or a print brief. Start from the one closest to your use, then adjust lightness before you change hue.
Shades that keep this combination working
Red, Yellow and Blue Color Combination: questions people ask
What is the hex code for red, yellow and blue?
Pure red is #FF0000, pure yellow is #FFFF00 and pure blue is #0000FF. They are also the CSS keywords red, yellow and blue. For everyday design, softer versions such as #D62828, #FFD60A and #1D4ED8 are easier on the eye.
Why are red, yellow and blue called the primary colors?
In traditional art and paint mixing, they are the three hues taught as unmixable starting points for orange, green and purple. Screens use red, green and blue light instead, and printers use cyan, magenta and yellow ink. Red, yellow and blue remain the classic teaching model.
What happens when you mix red, yellow and blue together?
In paint, equal amounts give a muddy brown or dark grey, because each pigment absorbs part of the others. On screen, mixing light behaves differently, and combining all three channels at full strength gives white. The result depends on whether you mix pigment or light.
Is red, yellow and blue a good color combination for a logo?
Yes, if one color leads and the others support it. Pure primaries can look childish or like a toy brand, so many designers choose a deeper blue, a warmer yellow and a slightly darker red, plus a neutral.
What colors go well with red, yellow and blue?
White, cream, black and mid greys are the safest partners because they give the loud colors room. Denim and navy also work well as grounding blues. Avoid adding green and orange at full strength, or the palette turns into a rainbow.
Keep exploring
- Pink and Purple Color Combination: Palettes and Hex Codes
- Orange and Black Color Scheme: Palettes and Hex Codes
- Blue and Black Color Combination: Palettes and Hex Codes
- Black and Grey Color Combination: Palettes and Hex Codes
- Yellow and Blue Color Scheme: Palettes and Hex Codes
- Orange and Brown Color Combination: Palettes and Hex Codes
- Honey Blonde Color: Hex Code, RGB and Palettes
- Light Green Color: Hex Code, RGB and Palettes