To select pen and fill colors easily, use the "Color picker".
Note: The "Color picker" tool is one of the rare dotCube functions, which only proceed within one single image.
Proceed as followed: