Easiest solution: define more than one paragraph style, each with a different colour, and apply them as needed during pagination. Use the based-on feature to make things easy.
If you want to implement a scripted solution, it depends a lot on how your document is set up. If each chapter has a different master applied, for example, you can do a findGrep() for headings, then for each heading check it's page's applied master and apply the proper colour.
Use a book structure for your project - I mean each chapter in a separate doc which are collected in a book.
You can differ same named swatches in these docs and switch off color synchronization.
So no script needed.
Yes, I think it´s the easiest way. I´ve hoped, there is a smarter option I didn´t heard about until now. But it´s okay. That is the way I solve it. Thanks!
@jump over: the brochure is too small (few pages) for your solution. But thank you for the hint!
cmoke73, don't forget to mark the question as answered