Navy Blue
Color CodesNavy Blue

Navy Blue Hex Code to Copy Into CSS or Your Design Tool

A computer monitor on a desk displays a solid navy blue screen.

The standard navy blue hex code for CSS is #000080, equivalent to RGB values of 0, 0, 128. This is web navy, not a universal specification for every shade labeled “navy blue” or a matching physical paint.

The navy blue hex code is #000080

Standard CSS navy — HEX value to copy:

Navy blue hex code
#000080

The “4.” in “4. Navy blue hex code” is likely a list prefix, not part of the color code.

For example, if a website setting asks for a navy background color, enter #000080.

Copy the input your color field accepts

These inputs represent the same standard CSS navy color. The HEX and RGB values identify zero red, zero green, and 128 blue.

Input formatEquivalent value
HEX#000080
RGBrgb(0, 0, 128)
CSS keywordnavy

Use the format your field requests. For example, navy works as a CSS color value, but a design tool's HEX field generally expects hexadecimal digits rather than a color name.

Use navy for a CSS background or text

For example, this rule creates a navy panel with white text:

Navy background with white text
.navy-panel { background-color: #000080; color: #fff; }

For navy text on a white background, use:

Navy text on white
.navy-text { color: navy; background-color: #fff; }

Don't assume navy text will remain readable if you replace white with another dark background.

Paste navy into a design tool

Select HEX entry in your tool's color picker. If it offers a color-space choice, use sRGB for the standard CSS interpretation. Enter #000080, or enter only 000080 if the field already supplies the # outside the editable area.

For example, a field showing a fixed # beside its input needs these six digits:

HEX digits without the hash sign
000080

Confirm full opacity so the background doesn't change the displayed result through transparency.

Three checks before you use this color elsewhere

Can I shorten #000080 to #008?

No. #000080 has no three-digit hex shorthand. Short hex repeats each digit, so #008 expands to #000088, a different color. A six-digit value can be shortened only when both digits in each pair match; the final pair in #000080 is 80.

Does every color called navy blue use this code?

No. Standard CSS navy means #000080, but other navy labels can refer to different values. One color reference, for example, labels #2D2363 “Navy Blue” and distinguishes it from web navy. Check a saved brand swatch's numeric value before replacing it simply because its name is Navy.

Does this hex code identify matching paint or printing ink?

No. A digital hex code does not specify an exact physical paint or ink match. For paint, choose a specified manufacturer color or physical color system and inspect a sample. For print, agree on the printing specification and review a proof; the screen value alone cannot guarantee the result.

Sources

Tags: Navy Blue