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:
Where each part is a 2 digit hexadecimal value. For CMYK the value should be:
Where NNN is the decimal value required.