the blue light doesn't warm up your skin, I'm not sire how that affects the vitamin D production but for sure the Sun is not repleceable
Discussion
Sunlight does much more than produce Vitamin D. You can get free red light therapy during sunrise and sunset. It also regulates your circadian rhythm and hormones. While blue light tells your body it is 12 noon at all times.