Abstract: Water-insoluble naphthalic acid imide dyestuffs of the following formula: ##STR1## wherein D is ##STR2## wherein R.sup.1 is C.sub.1 -C.sub.8 alkyl which may be substituted, R.sup.2 is hydrogen, halogen, lower alkyl, lower alkoxy or cyano, X is oxygen or sulfur, and m is 0 or 1; A is phenylene, alkylene, aralkylene or --C.sub.2 H.sub.4 OC.sub.2 H.sub.4 --; B is oxygen, sulfur or ##STR3## wherein R.sup.3 is hydrogen or lower alkyl; Y is a 6-membered nitrogen-containing heterocyclic ring having at least one active halogen atom; and n is 0 or 1.