It’s meaningful, but it’s not referential (to use Jakobson’s functions of language). It’s phatic: it’s meaning is associated not with a situation, object or mental state—but wiht the channel of communication. The main function of hello is to open the channel up.