The invention relates to the use of one or more compounds of the 4-bora-3a,4a-diaza-s-indacene family for the preparation of a security element for a product, in particular a document, said security element comprising a polymer and said compound(s) being incorporated in said polymer, and to a method for ensuring the security of a product, in particular that of a document.