Applying CMYK or RGB values to a frame

The Apply Swatch Named in Field “Pagination Rule” can apply either a named swatch or an RGB or a CMYK value if that value is in a field.   For RGB, the value should be:
#RRGGBB
Where each part is a 2 digit hexadecimal value. For CMYK the value should be:
cNNmNNyNNkNN
Where NN is the decimal value required.