I personally thought it was easy to understand...
Armour have Defensive sockets (Green)
Weapons have Offensive sockets (Red)
Jewelery have Support Sockets (Blue)
Offhand {such as shields and Catalysts} may have any of the three...
Each Colored socket has three shapes {levels}, Circle is level 1, Hexagon is level 2, and diamond is level 3.
you match the socket color and shape to the gem of your choosing, for example...
A sword with red circular socket means = Offensive level 1 {red = offensive, circle = level 1}
Which means out of the 9 options each gem has, Offensive 1 would be the stats that gem will add to the socket.
there is a Vendor by the name of ZANAFER STARK in the main city, she has 4 tabs, the first 2 are important because:
1- Tab 1: Remove a Gem you previously socketed - easy to understand.
2- Tab 2: re-roll sockets on items - it will randomize the level of sockets on the items, sometimes may add or remove sockets, keep re-rolling until you're happy, example: Melee weapon with a red level 2 socket is useless, because normally red level 2 is for spell damage, so you may want to change it to a level 1 which is normally for physical damage or level 3 which is normally a % added to damage.
NOTE NOTE NOTE: Colors will stay the same, only the level will change EXCEPT offhand items that are capable of having multiple colors.