I assume this is a square box.Which is the longest line?
To make things simpler, without loss of generality, let this be a unit box, that is, let its side have length one.
Observe how the lines take circular segment shapes on the faces of the box. So, the lines can be described in terms of a sum of quarter circles. Mathematically, $$ L=\frac\pi2\sum_{i=1}^{n}1=\frac{n\pi}2. $$ In other words, we don't even have to do any math at all; all we have to do is count the number of quarter circles and whichever line has the most is the longest one.
To me, it looks like the blue line has $8$ quarter circles while the red one has $7$. So, the blue line is the longest line.
By the way, bro:
Spoiler: