Navy Color Code: Hex #000080
The hex code for Navy is #000080 (the CSS keyword navy). Navy RGB code: rgb(0, 0, 128). The xkcd color survey gives #01153E instead, which looks clearly different; both codes are below with their source.
#000080Top: the code browsers use#01153EBelow: compare edge to edgeNavy color codes: each Navy hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- blue
- Contrast
- 16.01:1 with white, 1.31:1 with black
- CSS keyword
- navy
- Character
- very dark, vivid
- Readable text on it
- white (AA)
The name refers to the dark blue of Royal Navy officers’ uniforms, whose first regulations were issued in 1748; other navies later adopted similar dark blue uniforms. The United States Navy lists a far darker value as an official color, and many navies’ so-called navy blue uniforms have become close to black.
A very dark, vivid blue with a cool cast. In code, navy gives exactly this web value. If you mean the color as people usually picture the name, the survey value #01153E is closer: it is darker and more muted.
White text reads best on it; black text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Dark Blue, its closest named neighbour, it looks about as light, more muted and neither warmer nor cooler; beside Midnight Blue it looks about as light, more vivid and cooler. It is one of the darkest of the blue family here. It is one of the 16 original HTML 4 color names.
Navy blue color code: the open name list gives #000080 for Navy Blue, the same hex code as CSS navy, so the navy blue hex code for the web is #000080; the xkcd survey names a darker #001146 navy blue.
Colors that go with Navy
Complementary: the opposite of Navy
#000080White text 16.01:1#332400White text 15.07:1#607FBEBlack text 5.28:1#1C1200White text 18.49:1
Analogous
#002B3EWhite text 14.84:1#000080White text 16.01:1#2F0066White text 16.00:1#89A1D1Black text 8.08:1
Triadic
#000080White text 16.01:1#500008White text 15.62:1#003104White text 14.57:1#B4C4E3Black text 11.95:1
Monochrome
#00001FWhite text 20.59:1#00004DWhite text 18.97:1#000080White text 16.01:1#395CAAWhite text 6.39:1#89A1D1Black text 8.08:1
With neutrals
#000080White text 16.01:1#B4C4E3Black text 11.95:1#00000BWhite text 20.90:1#536384White text 6.02:1
Preview
Heading on Navy
Body text on this color, 16.01:1.
ButtonHeading in Navy
Text in this color on white, 16.01:1.
ButtonTints and shades
#B4C4E3#89A1D1#607FBE#395CAA#133896#000080#000066#00004D#000035#00001F#00000B
WhiteNavyBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Navy blue” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: