navy (#000080)

navy is a CSS named color with the hex code #000080, rgb(0, 0, 128). It is a dark, vivid indigo.

navy#000080
Keywordnavy
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)

Full #000080 details: palettes, shades, color-blind view →

Description

Navy has a hue of 240°, saturation 100% and lightness 25%, which places it in the blue family. Its strongest channel is blue (128).

Using navy in CSS

.title { color: navy; }
.box   { background: navy; border-color: #000080; }
.soft  { background: rgb(0 0 128 / 20%); }   /* navy at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
darkblue#00008b0, 0, 1391.6
midnightblue#19197025, 25, 1125.6
indigo#4b008275, 0, 1307.9
mediumblue#0000cd0, 0, 20510.3
darkslateblue#483d8b72, 61, 13914.7
rebeccapurple#663399102, 51, 15315.6
blue#0000ff0, 0, 25516.5
purple#800080128, 0, 12818.6

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 16.01:1; with black text: 1.31:1. White body text on navy meets WCAG AA.

Frequently asked questions

What is the hex code for navy?
#000080.
What colors are similar to navy?
darkblue (#00008b), midnightblue (#191970), indigo (#4b0082).