A brown line on the nail is called longitudinal melanonychia or longitudinal striata . It is the most common type of melanonychia, a medical word for a black or brownish pigmentation of the nail plate (the hard part of toenails or fingernails ). Longitudinal melanonychia can have many causes.