There's 1866 RAM on the QVL for that board, so it's fine. http://download.gigabyte.us/FileList/Memory/mb_memory_ga-z77-d3h.pdf
It doesn't have that exact kit on the list, but there are
G.Skill 1866 kits on it, so I don't foresee any problems. You'll have to set it to 1866 either with the XMP profile, or manually, when you first install it (you would for any
1866 RAM), but after that, all should be well.