Notification
Go to Home All Tools Compare Glossary Blog Contact

Navy Color Code: HEX, RGB, HSL and CMYK

Navy is #000080 in hex, rgb(0, 0, 128) in RGB and hsl(240, 100%, 25%) in HSL. Copy any format, check contrast and see shades and matching colours.

Client-Side (Private)
HEX #000080
RGB rgb(0, 0, 128)
HSL hsl(240, 100%, 25%)
HSV hsv(240, 100%, 50%)
CMYK cmyk(100%, 100%, 0%, 50%)
Contrast on white 16.01:1
Live Preview
#000080 Navy
e.g. navy
Quick try:
Converted Result (ALL)

How to use navy in CSS

Step-by-step mathematical method you can verify by hand

  1. Use the colour name: color: navy; or background: navy;
  2. Or use the hex code: color: #000080;
  3. Or use RGB: color: rgb(0, 0, 128); and add transparency with rgba or rgb(... / 50%).
  4. Or use HSL to adjust it: hsl(240, 100%, 25%). Raise the last number to lighten, lower it to darken.

Navy in every format

Worked Hand Example
FormatValue
HEX#000080
RGBrgb(0, 0, 128)
HSLhsl(240, 100%, 25%)
HSVhsv(240, 100%, 50%)
CMYKcmyk(100%, 100%, 0%, 50%)
Decimal128
navy = #000080.

Shades and tints of navy

The hue and saturation of navy stay the same and only the HSL lightness changes, so every row is the same colour family.

ShadeHEXHSL lightness
Lightest #ccccff 90%
Lighter #8080ff 75%
Light #3333ff 60%
Navy #000080 25%
Dark #0000cc 40%
Darker #000080 25%
Darkest #00003d 12%

Colours that go with navy

Colour-wheel harmonies calculated by rotating the hue.

HarmonyHEXRGB
Complementary #808000 rgb(128, 128, 0)
Analogous (+30°) #400080 rgb(64, 0, 128)
Analogous (−30°) #004080 rgb(0, 64, 128)
Triadic (+120°) #800000 rgb(128, 0, 0)
Triadic (+240°) #008000 rgb(0, 128, 0)
Split-complementary (+150°) #804000 rgb(128, 64, 0)
Split-complementary (+210°) #408000 rgb(64, 128, 0)

Contrast of navy with black and white text

WCAG 2.x contrast ratios.

Text colourRatioAA normal (4.5)AA large (3)
White 16.01:1 Pass Pass
Black 1.31:1 Fail Fail

More colour codes

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Navy is #000080 in hex, rgb(0, 0, 128) in RGB and hsl(240, 100%, 25%) in HSL. Copy any format, check contrast and see shades and matching colours. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

navy is #000080 in hex, rgb(0, 0, 128) in RGB and hsl(240, 100%, 25%) in HSL.

navy is rgb(0, 0, 128). In the simple CMYK formula it is cmyk(100%, 100%, 0%, 50%) (a screen conversion, not a print profile).

Yes. You can write color: navy; in CSS and it means exactly #000080.

Black text has a contrast ratio of 1.31:1 and white text 16.01:1 on this colour. White is the better choice. WCAG AA needs 4.5:1 for normal text.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI