What does ‘To feel blue or have the blues’ mean?

Just as the color blue can be associated with emotions of loneliness or melancholia, Americans use this slang phrase to express sadness.