Whether it will be illegal if the company name is the same as someone else’s trademark name depends on the specific circumstances: 1. If someone else’s trademark name has become the common name or unique name of the corresponding product, in this case, since it has become the common name of the product, or a unique name that is no longer distinctive, and is also subject to the provisions of the Trademark Law and can apply for invalidation of a registered trademark, there is no infringement issue; 2. For a trademark name that does not violate the prohibitive provisions of the Trademark Law, the trademark name does not violate the prohibitive provisions of the Trademark Law. If it becomes a common name of a product due to improper use, and the exclusive right to use the trademark is still within the legal protection period, using someone else’s trademark name in a product name constitutes infringement. Legal basis: Article 2 of the "Implementation Measures for the Registration and Management of Enterprise Names" These Measures apply to the names of enterprise legal persons and enterprises without legal person qualifications registered by the industrial and commercial administrative authorities. Article 3 An enterprise shall choose its own name in accordance with the law and apply for registration. An enterprise enjoys the right to its name from the date of its establishment.