Narrative:

[After takeoff] tower assigned us 330 heading. As I was finishing my after takeoff check list we were switched over to departure control. I heard '250' from pilot flying and same time I heard maintain 8;000 feet from departure control. I turned the heading knob to 250 heading. About a minute later ATC ask what heading we were [on] and ask us to turn 270 heading. That's when I realized pilot flying was asking me for the speed 250.ask ATC to repeat when [in] doubt. And confirm with the pilot flying also.

Google
 

Original NASA ASRS Text

Title: CRJ-900 flight crew reported a heading deviation occurred when the pilot not flying misunderstood the pilot flying's request.

Narrative: [After takeoff] tower assigned us 330 heading. As I was finishing my after takeoff check list we were switched over to departure control. I heard '250' from pilot flying and same time I heard maintain 8;000 feet from departure control. I turned the heading knob to 250 heading. About a minute later ATC ask what heading we were [on] and ask us to turn 270 heading. That's when I realized pilot flying was asking me for the speed 250.Ask ATC to repeat when [in] doubt. and confirm with the pilot flying also.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.