Avoiding colored partitions of two elements in the pattern sense