Possible meanings are 1) "material that is dyed blue, purple, and scarlet," probably wool yarn, or 2) "blue, purple and scarlet dye" to dye the linen. See how you translated a similar phrase in [Exodus 25:4](../25/03.md).
Here "hearts" refers to the women. The hearts of the women who responded to God are spoken of as if they were water stirred up by a storm. AT: "who responded to God" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-metaphor]])