I've been reading a book where the love interest is named Mary Hartley, but goes by her surname Hartley to distinguish herself from all the other Mary's.
It's a surname, and one that may be misheard as the more common Harley. Unless I had ties to the surname, I wouldn't use it.