CSS Color: Navy

Named CSS color Navy #000080 in HEX, rgb(0, 0, 128) in RGB, hsl(240, 100%, 25%) in HSL.

NavyBlue

Color Values

FormatValueCSS Usage
NamedNavycolor: Navy;
HEX#000080color: #000080;
RGBrgb(0, 0, 128)color: rgb(0, 0, 128);
HSLhsl(240, 100%, 25%)color: hsl(240, 100%, 25%);

About Navy

Navy is a deep, dark blue that is half the intensity of pure Blue. At hex `#000080`, the blue channel is at 128 with red and green at zero. In HSL, it shares Blue's 240-degree hue but with only 25% lightness, creating a color close to black with a clear blue identity.

In web design, Navy is one of the most versatile dark colors. It serves as an excellent alternative to black for backgrounds, text, and headers — providing the same readability with more visual interest and warmth. Many design systems use Navy instead of pure black because it feels less harsh.

Navy achieves a contrast ratio of approximately 16.0:1 against white, easily passing WCAG AAA for all text sizes. This makes it one of the most reliable colors for accessible text and UI elements.

Navy conveys authority, trust, and professionalism. It is the standard color for corporate websites, financial institutions, and government portals. It pairs exceptionally well with white, gold, coral, light blue, and light gray. In Tailwind CSS, `blue-900` provides a very close match.

FAQ

What is the hex code for Navy?

The CSS named color Navy has the hex code #000080. You can use it in CSS as color: #000080; or simply color: Navy;.

What is Navy in RGB?

In RGB notation, Navy is rgb(0, 0, 128). Use it in CSS as color: rgb(0, 0, 128);.

What is Navy in HSL?

In HSL notation, Navy is hsl(240, 100%, 25%). Use it in CSS as color: hsl(240, 100%, 25%);.

What color category is Navy?

Navy belongs to the Blue color family in the CSS named colors specification.

Can I use the name "Navy" directly in CSS?

Yes. All modern browsers support CSS named colors. You can write color: Navy; or background-color: Navy; directly in your stylesheet. Named colors are case-insensitive.

Try in Color Converter

Convert Navy to other formats, check contrast ratios, explore palettes, and find the closest Tailwind CSS class.

Open Color Converter →