This page gives you the exact conversions, shows how the color differs from navy and cobalt, and explains how to use it on screen, in print and in rooms. The palette maker above builds matching sets from this code, with HEX, RGB and HSL ready to copy.
What #00338D Looks Like Next to Other Blues
On screen, reads as a rich, slightly electric navy. The red channel is zero, green is low and blue is strong, so there is nothing warm in it. Its hue angle is about 218 degrees, a small step from pure blue toward cyan, and it is fully saturated at roughly 28% lightness.
That mix makes it formal without being gloomy. Plain navy can look almost black from across a room, while this blue keeps its color even in low light. Some sites label it Smalt, others call it Dark Sea Blue or Air Force Blue. It has no official CSS keyword, so the hex code is the only reliable way to name it.
The closest web-safe color is , which is a little lighter and brighter. If you are matching an existing logo, do not swap one for the other. The difference is small on a monitor and obvious when the two sit side by side.
#00338D Color Codes: HEX, RGB, HSL and CMYK
The hex code splits into three pairs: 00 for red, 33 for green and 8D for blue. Converted to decimal that gives 0, 51 and 141. Here is every format you are likely to paste into a design tool or a stylesheet.
| Format | Value |
|---|---|
| HEX | (short form #038 is only a near match) |
| RGB | rgb(0, 51, 141) |
| HSL | hsl(218, 100%, 28%) |
| HSV | hsv(218, 100%, 55%) |
| CMYK (basic conversion) | 100%, 64%, 0%, 45% |
| Decimal | 13197 |
| Binary | 00000000, 00110011, 10001101 |
The CMYK line is plain arithmetic from the RGB values. A real press uses ink profiles and paper characteristics, so treat it as a starting point rather than a recipe. The print section below covers what a brand book actually specifies.
Is #00338D the KPMG Blue? Brand Use Explained
Yes. KPMG’s brand guidelines list its primary blue as RGB 0/51/141, HEX 00338D and Pantone 287 C. The same guidelines add a medium blue () and a light blue () to give the identity some range.
On its website the firm leans on a brighter blue for action. A measured analysis of kpmg.com shows as the primary color and as the secondary. The neutrals include , a dark gray that works well as body text beside this blue. You can read more on that neutral on the page.
The pattern is worth copying even if you are not an accounting firm. Use one dark anchor blue for logos, headers and footers, one brighter blue for buttons and links, and plenty of white. It is the standard recipe for finance, consulting, insurance and government sites because it signals stability without shouting.
How #00338D Differs From Navy, Cobalt and Royal Blue
Blues in this range are easy to confuse, and clients often hand over a “navy” that is really something else. Four quick comparisons help you spot the gap:
- Navy () has no green at all, so it feels purer and a bit more violet.
- Cobalt () is lighter and clearer, with more green in the mix.
- International Klein Blue () is more vivid, closer to a lit screen than a printed page.
- Dark Blue () leans violet and loses the slightly cool, steely edge of .
For something softer, is a dusty slate navy that calms a layout built on . If you want a brighter and more ceremonial tone, the swatches on the royal colors page sit higher on the lightness scale and suit celebratory or regal themes.
Shades and Tints of #00338D
Mixing the color with black in even steps gives these shades: , , , and . They are useful for hover states, shadows and deep footers, and they all stay recognizably in the same family.
Mixing with white gives the tints: , , , , , and . The lightest one, , makes a quiet section background that still feels connected to the brand blue.
In practice I rarely use more than four of these in one interface. A pale tint for panels, a mid tint for borders and disabled controls, the base for primary elements and one dark shade for pressed states covers almost everything. Put the pale tint next to an off-white page such as and the two read as one cool, clean family.
Palettes and Color Pairings That Work With #00338D
The inverted color, which is a handy shortcut to a warm partner, is , a golden amber. Amber against deep blue is one of the most dependable contrasts in design: it draws the eye and still looks professional. Brass and cream give a more traditional, stationery-style version of the same idea.
Reports, pitch decks and finance sites that need calm authority.

Invitations, law firm branding and print stationery with a warm metallic accent.
Landing pages that need one warm call to action against deep blue.
Dashboards and interiors that want blue without the loud saturation.
For harmony without contrast, stay with blues. Medium and light blues such as and step up gradually, and pale ice blue like works as a highlight. For a louder accent, a vivid orange-red like can flag alerts or sale badges, but keep it to small areas or the page turns restless.
Neutrals do the rest. White is the obvious partner, light grays soften it, and a dark gray text color keeps long reading comfortable. Four ready-made sets are below.
Using #00338D in Web and UI Design
As a CSS color it is a one-liner, but a few design tokens make life easier. Define the base once and derive the states from the shades above:

:root {
--blue-900: ;
--blue-700: ;
--blue-600: ;
--blue-100: ;
}
.button {
background: var(--blue-700);
color: ;
}
.button:hover { background: var(--blue-600); }
.overlay { background: rgb(0 51 141 / 0.8); }
A simple state scheme for a primary button looks like this:
- Default: with white text.
- Hover: , slightly darker so the change is visible.
- Pressed: , darker again.
- Focus ring: or lighter, so it stands out against the fill.
Borders and dividers on light pages work well in a soft gray such as . For hero sections, a gradient from into a cool gray adds depth without muddying the blue, and the gray gradient page has ready CSS for that. Use this blue for the heavy lifting (navigation bars, headers, primary buttons) and let lighter tints carry the content.
Contrast and WCAG: What Passes on #00338D
I computed the ratios from the sRGB values using the WCAG formula. White text on measures about 11.3:1, so it clears the 4.5:1 AA threshold for body text and the 7:1 AAA threshold. On the other side, text on white gives the same 11.3:1, which makes it a safe link and heading color. On it measures about 10.3:1.
You need readable body text on a #00338D banner. Which text color is the right pick?
White reaches about 11.3:1 on #00338D, while black falls to roughly 1.9:1.
Black is the trap. against lands at roughly 1.9:1, far below even the 3:1 large-text floor. Amber on comes out near 7.6:1, so warm accents pass comfortably as text.
Put white or a pale tint on , never black or another dark color. Aim for at least 4.5:1 for text and 3:1 for icons and borders.
Dark mode needs care. On a near-black page the base blue nearly disappears, so lighten it for text and controls. A tint like against gives about 3.9:1, which is enough for a non-text focus indicator but not for body copy. On one client dashboard, the fix for unreadable chart labels was simply moving them from this blue to its lightest tints on the dark panels.
Printing #00338D: CMYK, Pantone and Proofs
The basic conversion gives 100, 64, 0, 45, but brand teams rarely use it. KPMG’s own guidelines give CMYK 100/72/0/12 for this blue, a different recipe that also pairs with a Pantone spot color. Two documents can both be “right” and still print differently, which is why you should ask for a spot color or a press proof on anything that matters.
Try this: Fill a rectangle with , add white 16 px text, and print it on your office printer. Hold the page up to your screen and note exactly how the blue shifts.
A logo must match #00338D exactly in print. What is the safest move?
A spot color and a physical proof remove the guesswork that screen-to-print conversion adds.
Saturated blues like this are among the first colors to surprise you on paper. In my own proofs, they often print darker or slightly purple on uncoated stock, and flat solid areas can show banding. Coated paper keeps the crisp look closest to the screen.
For text, avoid pure black next to it. A soft near-black such as is gentler beside a strong blue and is a common stand-in for a printer’s black. Always ask the printer which profile they work in before you send final files.
#00338D in Interiors, Fashion and Art
In a room, this blue absorbs most of the light that hits it. Its light reflectance value is estimated at about 4.3%, and that figure comes from the digital swatch rather than a paint maker’s measurement. In practice, use it on one feature wall, a door or cabinetry, and test a real sample under both daylight and lamps.
Warm woods, brass fixtures and cream textiles balance it well. In fashion it behaves like a brighter navy: tailoring, ties and knitwear in this shade look sharp with camel, tan, white and soft gray. It has more character than classic navy without reaching cobalt’s brightness.
For art and illustration, the family has a long history. Smalt was a historical blue pigment made from ground cobalt glass, which explains why the name appears so often for this shade. Digitally, mixing with a little warm brown or orange yields rich, dark neutrals that feel more alive than a flat gray.
Colors close to this code
#00338D Color: questions people ask
What color is 00338D?
00338D is a dark, saturated blue with the RGB value 0, 51, 141. It sits between navy and cobalt and is best known as the primary blue of KPMG.
What is the RGB, HSL and CMYK of #00338D?
RGB is rgb(0, 51, 141) and HSL is hsl(218, 100%, 28%). The basic CMYK conversion is 100, 64, 0, 45, though a print profile or Pantone match will give slightly different numbers.
Does white text pass WCAG on #00338D?
Yes. White on #00338D measures about 11.3:1, which passes AA and AAA for normal text. Black text on it only reaches about 1.9:1, so avoid it.
What colors go with #00338D?
Warm amber such as #FFCC72, crisp white, light grays like #F4F4F4 and lighter blues such as #0091DA all work well. Brass or gold gives a more formal, traditional look.
What is the complementary color of #00338D?
The complement sits opposite on the wheel, in a warm orange-gold range. A practical choice is a soft amber like #F2A33A, which gives strong contrast without clashing.