The ratio of the perimeter of the boundary of the shaded portion to the perimeter of the whole figure is ____.

The ratio is 3 : 7.
From the grid (each square of unit length), the outer boundary has perimeter proportional to 28 units, and the shaded boundary has 12 units. Thus \(12:28=3:7\).