However, even then colors will never match perfectly for a number of reasons. RGB produces colors, not with pigments or inks, but by combining red, green, and blue light sources. CMYK reproduces colors by combining pigments or inks. The results are viewed in reflected light. When you print and image displayed on the screen, the RGB must be converted to CMYK and that process isn't perfect.
Experienced photographers know that slides have more contrast and color richness than prints do.
This is because slides are viewed by transmitted light and prints by reflected light. The same is true of a display monitor and printout. An image displayed by transmitted light on the monitor is going to be better than one viewed by reflected light on a piece of paper. Displays don't have to use halftoning to create colors because they can vary the intensity of color at each pixel. Turning on all the phosphors produces white.