A generalization of a theorem of Griffiths to 3-manifolds