SwatchWatch is a free InDesign script we’ve created to automatically add a grid of printable swatch samples at the end of an InDesign document. Supports InDesign CS5 and above.
More info in this case study:
https://www.rorohiko.com/wordpress/swatchwatcher-case-study/