Xerobit

Navy Hex Code and Color Values

Navy (CSS keyword navy) is #000080: rgb(0, 0, 128), hsl(240, 100%, 25%).

Navy: #000080

  • Hex
    #000080
  • RGB
    rgb(0, 0, 128)
  • HSL
    hsl(240, 100%, 25%)
  • OKLCH
    oklch(27.1% 0.1879 264.1)
  • CMYK
    100%, 100%, 0%, 50%
  • CSS name
    navy

Where the name navy comes from

navy is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #000080; CSS Color 4 says these came from the VGA palette.

navy is blue (#0000FF) with every lit channel at 128 instead of 255: #000080. Its relative luminance is 0.0156 against 0.0722 for blue.

No three-digit short form.

Shades and tints of Navy

  • 10% white #1A1A8D darkblue; 10% black #000073 navy
  • 20% white #333399 ; 20% black #000066 navy
  • 30% white #4D4DA6 ; 30% black #00005A
  • 40% white #6666B3 ; 40% black #00004D
  • 50% white #8080C0 ; 50% black #000040

Contrast of #000080

Against white 16.01:1 (passes AAA), against black 1.31:1 (fails); white text reads better on Navy. In HSV it is hsv(240, 100%, 50%).

Lightness rank 138 of 139; best partner white, 16.01:1.

Closest names to Navy

Navy has OKLCH hue 264 degrees.

NameHexOKLab distanceThan Navy
darkblue#00008B0.020lighter
midnightblue#1919700.054lighter
mediumblue#0000CD0.137lighter
indigo#4B00820.137lighter
darkslateblue#483D8B0.167lighter
rebeccapurple#6633990.207lighter
blue#0000FF0.220lighter

Color harmony for Navy

  • Complementary: #808000 olive
  • Analogous: #004080 , #400080 indigo
  • Triadic: #800000 maroon, #008000 green
  • Split complementary: #804000 saddlebrown, #408000 green

FAQ

What is the hex code for Navy?

#000080, or the keyword navy.

Which named color is closest to Navy?

darkblue (#00008B), then midnightblue and mediumblue.