Old English heardnes; see hard (adj.) + -ness. Meaning "difficulty of action or accomplishment" is late 14c.
Entries linking to hardness
hard adj.
Old English heard "solid and firm, not soft," also, "difficult to endure, carried on with great exertion," also, of persons, "severe, rigorous, harsh, cruel," from Proto-Germanic *hardu- (source also of Old Saxon hard, Old Frisian herd, Dutch hard, Old Norse harðr "hard," Old High German harto "extremely, very," German hart, Gothic hardus "hard"), from PIE *kortu-, suffixed form of root *kar- "hard."
Meaning "difficult to do" is from c. 1200. Of water, in reference to the presence of mineral salts, 1650s; of consonants, 1775. Hard of hearing preserves obsolete Middle English sense of "having difficulty in doing something." In the sense "strong, spiritous, fermented" from 1789 (as in hard cider, etc.), and this use probably is the origin of that in hard drugs (1955). Hard facts is from 1853; hard news in journalism is from 1918. Hard copy (as opposed to computer record) is from 1964; hard disk is from 1978; the computer hard drive is from 1983. Hard times "period of poverty" is from 1705. Hard money (1706) is specie, silver or gold coin, as opposed to paper. Hence 19c. U.S. hard (n.) "one who advocates the use of metallic money as the national currency" (1844). To play hard to get is from 1945. Hard rock as a pop music style recorded from 1967. To do something the hard way is from 1907.
-ness
word-forming element denoting action, quality, or state, attached to an adjective or past participle to form an abstract noun, from Old English -nes(s), from Proto-Germanic *in-assu- (cognates: Old Saxon -nissi, Middle Dutch -nisse, Dutch -nis, Old High German -nissa, German -nis, Gothic -inassus), from *-in-, originally belonging to the noun stem, + *-assu-, abstract noun suffix, probably from the same root as Latin -tudo (see -tude).