is this the right cord if

Solution
Both would work fine.
Which you choose would be based on taste in color and how long it needs to be (blue is 18 inches, black 24)
oh and black seems to be a pack of 3 so you would get 3 cables.