# Navy Color Code: #000080 Hex, RGB & Palettes

The CSS navy reference is #000080, rgb(0, 0, 128), or hsl(240, 100%, 25.1%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #CCCCE6 | rgb(204, 204, 230) | hsl(240, 34.21%, 85.1%) | 13.35:1 | 1.57:1 |
| Tint 40% | #6666B3 | rgb(102, 102, 179) | hsl(240, 33.62%, 55.1%) | 4.12:1 | 5.10:1 |
| Reference | #000080 | rgb(0, 0, 128) | hsl(240, 100%, 25.1%) | 1.31:1 | 16.01:1 |
| Shade 25% | #000060 | rgb(0, 0, 96) | hsl(240, 100%, 18.82%) | 1.17:1 | 17.97:1 |
| Shade 50% | #000040 | rgb(0, 0, 64) | hsl(240, 100%, 12.55%) | 1.07:1 | 19.55:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

Navy on black has low contrast despite belonging to a different hue family. Dark themes need lighter foreground roles instead of simply reusing light-theme navy text.

## How to use navy in product design

Navy is a dark blue suitable for a strong heading, navigation surface, or restrained action treatment. It can sit near black visually, so compare hierarchy at the real text size.

### A UI example to try

A navy sidebar can hold pale labels and a clearly marked current section. Test the active item, dividers, icons, and keyboard focus against the sidebar background individually.

### Work through a real screen

Use navy on a navigation region beside the main content surface. Check ordinary labels, selected items, icons, and focus treatment together. A very dark surface can make a bright accent feel stronger than it does on a light page, so review the entire navigation state instead of approving the background alone.

### Compare nearby colors by purpose

Compare navy with black for a dark neutral treatment and blue for more visible chromatic emphasis. Keep a separate semantic role for navigation surfaces so changing the brand blue does not unexpectedly recolor the whole application shell.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --navy-100: #CCCCE6;
  --navy-300: #6666B3;
  --navy-500: #000080;
  --navy-700: #000060;
  --navy-900: #000040;
}
```

## What is the HEX code for navy?

The CSS named color navy is #000080. Use a documented brand token when you mean another shade.

## Is navy accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [blue color codes](https://designproject.io/resources/colors/blue/)

- [teal color codes](https://designproject.io/resources/colors/teal/)

- [gray color codes](https://designproject.io/resources/colors/gray/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/navy/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
