Official colors of Chinese dynasties and faction colors in Dynasty Warriors and Sanguosha
Ancient Chinese believed in the Cycle of the Five Elements idea: the elements are Wood (Green/East), Fire (Red/South), Earth (Yellow/Center), Metal (White/West), Water (Black/North). All Five Elements are in constant move, and pass through cyclical changes (phases). The main cycles are the Generating cycle and the Destructing cycle.
The Generating Cycle: one element (serving as parent) strengthens and promotes growth of the next element (serving as child): Wood feeds Fire -> Fire creates Earth (ash) -> Earth bears Metal -> Metal collects Water -> Water nourishes Wood:
The Destructing cycle is when one element suppresses another element: Wood breaks the ground (Earth) -> Earth soaks up Water -> Water puts out Fire -> Fire melts Metal -> Metal chops Wood:
(There is also the Weakening cycle, which is basically the Destructing cycle in reverse order: Earth can bury Wood -> Water washes away Earth -> Fire evaporates Water, etc.)
Because of this belief, each dynasty was associated with one of the elements of the Generating cycle. Therefore flags and formal dress of each dynasty were colored according to the dynasty’s element: Green for Wood, Red for Fire, Yellow for Earth, White for Metal, Black for Water.
The official color could be changed during one dynasty’s rule: the Han empire went from Black (Water; inherited from Qin) to Yellow (Earth) in 104 BCE, then to Red (Fire) in 27CE. But this applied only to the color of the flag: the official dress color of Han always remained black, as it was during Qin.
The official color of Wei was Yellow, and its corresponding element was Earth, the next element of the Generating Cycle after the Han’s Fire, since Wei succeeded Han. (I believe Wei, like Han, also retained Black as the official dress color, that’s why sometimes Wei colors are said to be Yellow and Black: yellow flags, black formal clothes.)
The official color of Shu was Red, its element - Fire: Shu proclaimed itself the continuation of Han, not a new dynasty/empire, and adopted the Han’s color and element.
The official color of Wu was Green (element: Wood). Wu positioned itself as a new state completely unrelated to the Han empire, so the people of the South “reset” the Generating Cycle and chose its first element - Wood. By doing this they demonstrated their independence from the North.
Jin had Red official color, despite its Cycle element being Metal (White): it was postulated (by Fu Xuan) that the official color should only be changed if a dynasty was destroyed as a result of a war. Since the transition from Han to Wei to Jin was peaceful, the official color was “reset” to that of Han - Red. After Jin, this became customary.
So, historically, the colors of the Three Kingdoms + Jin were the following:
Wei - Yellow (Black for official dress), element - Earth
Shu - Red (and probably black official dress), element - Fire
Wu - Green, element - Wood
Jin - Red, element - Metal
The Chinese card game Sanguosha mostly follows the historical tradition:
Wei - Blue
Shu - Red
Wu - Green
In Dynasty Warriors the colors are different:
Wei - Blue
Shu - Green
Wu - Red
Jin - Light Blue
As for Wei being Blue in both games: nowadays Dark Blue is sometimes treated as an alternative color of the Water element, and historically Wei official clothes were Black, after the Water element of the Qin dynasty, so Blue is chosen here instead of Black. Plus, from the design point of view, when you have a lot of very diverse characters, Black isn’t the best choice: it lacks shades. Since Dark Blue can also sometimes serve as the color of the Water element, in both games Blue substitutes Black. Both Dark Blue and Black also symbolize North, and that’s where Wei was.
It’s interesting that both games avoid using Yellow for Wei. Probably in order not to confuse Wei with the Yellow Turban rebels. Or because Yellow has a strong association with the Emperor person and the legitimate imperial power.
Why did Koei switch colors for Wu and Shu? I think when Koei started to design factions in DW they didn’t even think about the official colors of Chinese dynasties, and chose color scheme based on directions: Red is the color of South, so that’s Wu, Blue is the color of North, so that’s Wei. According to this logic, Shu should have been White (being in the West). But White is as difficult to use in design as Black, besides Koei needed a bright and contrasting color, so they settled on Green (the color of the East), which has many positive connotations and is suitable for the “hero“ faction.
For the Jin color scheme Koei found (intentionally or not) a perfect solution: they understandably couldn’t use the historically correct Red (already assigned to Wu), so they took Light Blue as a way to mark Jin as the successor to Wei, and added a lot of White which historically was the color of Jin Dynasty element - Metal.
A nice article that lists Chinese dynasties colors and talks a bit about color significance in Chinese culture:
http://eap.ee/public/trames_pdf/2012/issue_3/Trames-2012-3-237-285.pdf