Blue and Black Color Combination: Palettes and Hex Codes
By Calder WynneBrand and UI designer, 12 years·Updated
Blue and black is the pairing of (pure blue) and (pure black). It is deep, electric and serious, and it works best when pure blue is a loud accent while lighter or darker blues handle anything people need to read.
Fresh ideas, made simple
A short line of body text to test how readable these colors are.
The preview under the title shows both colors as background, text and button, with a contrast score that tells the main story: the pair looks striking but is weak for text. Below you will find exact codes, tested contrast ratios, the blues that sit best beside black, copyable palettes, and how to use the combination in UI, branding, rooms, clothes and print.
Does Blue and Black Really Work Together?
Yes, and the reason is simple. Black is a neutral, so it lets blue stay fully saturated instead of competing with it. Pure blue (hue 240°) is also the darkest of the three screen primaries, so even at full strength it reads as deep and cool. Next to black it glows like a neon sign at night, while next to white it feels heavier and more formal.
The mood depends on which blue you choose. Pure is loud, electric and a little arcade. Darker blues feel calm and corporate, and a quieter pairing like navy and black is almost tone on tone. For something more mysterious, dark blue and dark purple pushes the same night-sky idea toward violet.
Blue and Black Hex, RGB, HSL and CMYK Codes
Here are the exact values for both colors. Black has its own page if you want more detail, see the full guide to black, but these are the numbers you need for the pairing.
Format
Blue
Black
HEX
RGB
0, 0, 255
0, 0, 0
HSL
240°, 100%, 50%
0°, 0%, 0%
CMYK (simple formula)
100, 100, 0, 0
0, 0, 0, 100
Relative luminance
0.0722
0
CSS name
blue
black
Pure blue is the blue channel at maximum with nothing else, which is why its HSL saturation is 100%. Its luminance of 0.0722 (white is 1) explains most of the contrast problems in the next section. Treat the CMYK row as a starting point only: printers cannot reproduce screen blue at full strength, so expect a deeper, slightly violet result.
Contrast Ratios: Why Pure Blue Struggles on Black
This is the catch. Pure blue looks vivid, but its luminance is very low, so on black it scores just 2.44:1. WCAG asks for 4.5:1 for normal text and 3:1 for large text and interface parts such as icons and input borders. Pure blue on black misses both, and the preview above shows the same low score.
Which change makes blue links on a black background pass WCAG AA?
Contrast depends on luminance, so a lighter blue helps, while extra saturation does not.
These are the ratios I computed from the hex values:
on : 2.44:1 (fails)
on : 8.59:1 (passes AA and AAA)
on : 5.50:1 (passes AA for body text)
on : 1.31:1 (decorative use only)
I learned this on a client dashboard. Pure blue links on a black sidebar looked vivid on my monitor, then support tickets said people could not find them. I changed the links to , kept for filled buttons with white text, and the complaints stopped. The rule I use now: lighten the blue when it is text on black, and keep deep blue when it is a background under white text.
A black to blue blend turns navy in the middle; adding a lighter #4D79FF stop restores readable contrast.
The Best Blues to Pair With Black
“Blue” covers a lot of ground, and the shade decides how the pairing feels. These are the six I reach for most. Five are named CSS colors, and cobalt is a widely used web value.
Navy : the darkest, best for large fills that sit quietly next to black
Midnight blue : slightly lighter and a touch violet, good for headers
Cobalt : confident and print friendly, strong on light pages
Royal blue : bright enough for buttons and badges on dark screens
Cornflower blue : soft and readable, good for icons and chart lines
Sky blue : light and airy, ideal for highlights and labels
A simple rule of thumb: dark blues sit beside black as texture, mid blues carry actions, and light blues carry text and data. Avoid putting two similar dark blues at the same weight next to black. They blur together and the design looks muddy rather than layered.
Blue and Black Palettes You Can Copy
Each palette below keeps black or a near black as the anchor, uses one strong blue as the focus, and adds a pale tint so there is always something comfortable for text. Click any code to copy it.
Electric Night
Gaming pages, event posters and bold app launch screens.
Midnight Ledger
Dashboards, finance tools and dark mode interfaces with calm blues.
Cobalt Studio
Portfolios and brand kits needing one warm gold accent.
Harbor Slate
Living rooms, menus and quiet corporate decks with soft contrast.
Electric Night keeps pure as the headline color for maximum punch. The other three trade it for easier blues, and they are the ones I would pick for products people use every day.
Blue and Black in Web and App Design
On screens, black rarely means for every surface. A soft black such as leaves room to layer cards in , which gives you depth that pure black cannot. Here is a small CSS setup that follows the contrast results above:
Which text color is safest on a #0000FF button?
White reaches 8.59:1 on pure blue, while black manages only 2.44:1.
Notice the split: pure blue appears only as a button fill under white text, while links and focus rings use the lighter blue. That keeps the brand color without sacrificing legibility.
Try this: Put your brand blue on and raise its lightness in HSL by 5% at a time. Stop when a contrast checker reads 4.5:1 and save that value as your “text blue”.
Lighten pure blue until it reaches 4.5:1 on black, and keep deep blue for fills.
Blue and Black in Brands and Team Colors
Blue and black signals precision, night and power, which is why it shows up in sports, gaming and tech. Inter Milan’s nickname, Nerazzurri, refers to its black and blue stripes, and the Carolina Panthers play in blue, black and silver. Teams and companies define their own exact shades, so always take codes from the official brand guide rather than guessing from a screenshot.
For a logo, give the blue room. A deep blue shape on a white field with black type is easy to reproduce, while a blue mark on a black field needs a lighter blue or a thin white keyline. If the logo must work in one color, check it in pure black first, because that is the version most printers and embroiderers will use.
Blue and Black in Rooms and Wardrobes
In interiors, black works best as the small, sharp part: window frames, light fittings, table legs and picture frames. Blue takes the larger surface, such as a navy wall, a cobalt sofa or a deep blue rug. Add texture (linen, wool, matte ceramic) so the dark tones do not flatten into one block.
The 60-30-10 split
Use 60% of a dominant color, 30% of a secondary and 10% as an accent. For this pairing, try blue as the main field, black as the structure, and a pale or warm tint as the accent.
In clothing, advice used to warn that navy and black clash. Today it is a familiar look, and the trick is to keep the blues clearly different: a bright cobalt shirt under a black jacket reads intentional, while navy trousers with a near black top can look like a mismatch. Break the line with white, grey or a leather tone.
Print and Art: Getting Blue and Black Right
Print is where this pairing can surprise you. On one flyer proof, a pure headline came back as a purple-leaning blue, because that screen blue sits outside what CMYK inks can make. The fix was to choose a blue built in CMYK from the start, one with plenty of cyan, and approve it from a physical proof rather than the monitor.
For large black areas, plain K100 can look thin and grey beside saturated blue. Many printers use a rich black that adds other inks under the black, and C60 M40 Y40 K100 is a common starting point. Ask your printer for their ink limit before you commit. Painters get a similar effect by mixing ultramarine with burnt umber, which makes a deep, lively blue-black that tubes of flat black cannot match.
Accent Colors That Join Blue and Black
Warm colors give the strongest contrast, since they sit opposite blue on the color wheel. Gold or yellow lifts a blue and black scheme instantly, and the yellow and blue page shows how far you can take that balance. Orange adds more heat and attitude, and orange and black is a useful reference for keeping it controlled.
For a cooler, cleaner finish, use white or a faint tint like ice white. Silver and light grey add a metallic feel without introducing a new hue. Whatever you choose, keep the accent to about a tenth of the layout so the blue and black remain the identity.
Shades that keep this combination working
Blue and Black Color Combination: questions people ask
Do blue and black go together?
Yes. Black is a neutral, so it lets blue stay rich and saturated. The pairing works best when you pick the blue for its job: deep blues for backgrounds, lighter blues for text and links.
What are the hex codes for blue and black?
Pure blue is #0000FF and pure black is #000000. Many designers swap in a soft black such as #0A0A0A and a gentler blue such as #4D79FF for screens.
Is blue text on a black background accessible?
Pure #0000FF on black scores 2.44:1, which fails WCAG AA. A lighter blue such as #4D79FF reaches 5.50:1 on black and passes for normal text.
Is navy blue and black a good combination?
It is a good pairing when you want a quiet, tone on tone look. Navy (#000080) on black scores only 1.31:1, so use it for texture and surfaces, never for text.
What colors go with blue and black?
White and ice blue keep it crisp, silver adds a cool metallic edge, and yellow, gold or orange give a warm accent. Keep the accent to roughly a tenth of the design.