Think of hue as a colour wheel running from 0 to 359, like the degrees of a circle. Damage in Gemcraft scales with the distance between your gem's hue and the monster's.
Match the two exactly and your gem does almost nothing. Put them on opposite sides of the wheel and you're looking at double damage. A gem at hue 1 hitting a monster at hue 1 deals 0 damage; the same gem against a monster at hue 181 deals twice the normal amount.
You change a gem's hue by combining it with other gems, which is precisely why the game pushes you to keep a spread of colours in reserve rather than relying on one favourite.