How to spawn items in Minecraft with an ID number that has a colon in it?

I know that you would spawn a cake (ID 92) by typing in

/give dimattero 92

How would I spawn an item like lapis lazuli (ID 351:4) or purple dye (ID 351:5)?

/give dimattero 351:4 doesn't work.

If you are on 1.7.x, this command will work

/give @p (or player name) minecraft: lapis_lazuli
/give @p (or player name) minecraft: purple_dye