How to change color of each box in a boxplot

So I have this data for my plot and right now it creates two boxes in my plot.
One consists of the first 3 values in each array and the other is the last three.
I am currently working on typescript React and I would like each box to be a different color (Right now they are both a default blue).
I have tried doing a colors array and that does not work.

Could anyone give me any tips on how to work this? And I do not have the option of adding more data{} objects because of the way I have spliced my data.