Darwin is the OS core of OSX. Unlike OSX's graphical parts Darwin is open source.
Darwin is a XNU kernel (microkernal with loadable extenstions) based on NeXTSTEP, BSD, and other free software projects. Darwin is open source.
Darwin forms the core of OS/X.
Note that the graphical parts of OS/X is not open source.