The Navy must supply an insurance agent with the names of permanent Marine Corps personnel assigned to Quantico, Va., a federal judge ruled yesterday, noting that the Defense Department sold a list of names and addresses of 1.4 million service members to the Reagan-Bush campaign committee last fall.

In court papers, the Navy said it had received $1,442 for the names of servicemen who lived in 20 states with closely contested congressional races.

On March 29, the Navy rejected a Freedom Of Information Act request from Robert A. Hopkins, of John Hancock Mutual Life Insurance Co., for the names, ranks and duty stations or work location of certain Marine units at Quantico.

Although the Navy had complied with a similar request, it said its policy had changed and that giving such lists for commercial solicitation does not serve the public interest normally and would constitute an unwarranted invasion of privacy.

"Although the purpose for which Hopkins admittedly intends to use this information is clearly not that intended by Congress in enacting the FOIA, the court is unable to agree with Navy's contention that the invasion of privacy, if any, which will result from commercial use of these names and addresses is sufficient to rise to the level which would justify nondisclosure," U.S. District Court Judge Thomas A. Flannery said.

-- Howard Kurtz