AFAIK, the parallel axis theorem still applies to calculations of the 2nd moment of area. I think you were close, you just miscalculated the 2nd moment of area through the centroid. I'll try calculating the 2nd moment of area using the parallel axis theorem:
Parallel axis theorem applied to the moment of area
(Inertia around axis x) = (Inertia through centroid parallel to axis x) + (Area * (distance from axis x to centroid)^2)
Simplified = (First Term) + (Area * distance^2)
Code:
AAAAAAAAAA
AAAAAAAAAA -- (axis through centroid of A parallel to x)
AAAAAAAAAA
BBBBBB
BBBBBB
-------------- (axis x)
Calculating the first term:
(moment around axis parallel to x through centroid) = Integral [ -1.5, 1.5] r^2 10mm = 1/3 r^3 10mm over (-1.5, 1.5) = (10mm * (1.5mm)^3 / 3) - (10mm * (1.5mm)^3 / 3) = 22.5mm^4
Area of shape = 10mm * 3mm = 30mm^2
distance = 3.5mm
so Ix = 22.5mm^4 + (30mm^2 * (3.5mm)^2) = (22.5 + 367.5)mm^4 = 390.0mm^4