Play a Cb major scale and a B major scale on a piano and you'll press exactly the same keys and hear exactly the same music. The difference is all on paper. B major is written with five sharps; Cb major is written with seven flats, the most a key signature can hold. The notes are Cb, Db, Eb, Fb, Gb, Ab, Bb. Every single one carries a flat, which looks alarming at first and turns out to be easy to remember.
Most musicians write this key as B major. It's simpler to read, and you'll see it far more often. Cb major tends to turn up in classical scores, especially when a piece moves into it from another flat key and the composer wants to keep everything in flats. So if Cb looks unfamiliar, nothing is wrong with you. It's simply the less common name for a very familiar sound.
Two notes deserve a word. Cb is played on the same piano key as B, and Fb on the same key as E. These are called enharmonic notes: two names for one pitch. A scale uses each letter name A to G exactly once, so after Eb the next letter has to be F. The note we need is a half step above Eb (a half step is the smallest step in Western music, like moving from one piano key to the very next one), and that F-something is Fb. The same rule makes the root Cb rather than B, because the scale needs a C-letter note.
Build a chord on each note of the scale by stacking every other note, and you get seven chords. A triad is a three-note chord; add one more stacked note and you get a seventh chord.
Capital Roman numerals are major chords, bright and stable. Lowercase ones are minor, softer and darker. The little circle marks a diminished chord, which is tense and restless.
The real drama sits in Gb7, the V chord. It contains both Bb and Fb, and those two notes are the scale's characteristic tones. Bb is the 7th degree, just a half step under the root, so it strains upward to Cb. Fb is the 4th degree, a half step above Eb, so it tends to sink down onto Eb. When Gb7 moves to Cb, both notes slide by a half step into the home chord at once. That double resolution is the sound of "arriving" that major keys are famous for.
Fb major, the IV chord, works differently. It holds the 4th, Fb, as its root, and it feels like a gentle step away from home rather than a push back toward it. Abm, the vi chord, is the relative minor's home chord: Ab minor shares every note with Cb major, so Abm gives you a shadowy, wistful color without leaving the key.
Try this on a keyboard, slowly, one chord per bar:
Cb — Abm — Fb — Gb7 — Cb
Listen for three moods in a row. Abm dims the light, Fb opens it back up, and Gb7 builds tension that Cb releases. Hold the Gb7 an extra beat before resolving, and you'll feel the Bb and Fb almost asking to move.
For a jazzier version, play Dbm7 — Gb7 — Cbmaj7. That's the ii-V-I, the backbone of countless standards. The Cbmaj7 at the end has a warm, slightly dreamy finish because it includes Bb, the 7th, sitting right beside the root without resolving.
Every major scale follows the same pattern of whole steps (W, two half steps) and half steps (H): W - W - H - W - W - W - H. From Cb that reads: Cb to Db (W), Db to Eb (W), Eb to Fb (H), Fb to Gb (W), Gb to Ab (W), Ab to Bb (W), Bb to Cb (H).
Notice where the two half steps land: Eb to Fb, and Bb to Cb. Those are exactly the spots where the chords above get their pull. In terms of intervals (the distance from the root to each note), you have a major 2nd, major 3rd, perfect 4th, perfect 5th, major 6th and major 7th. That's the formula 1 2 3 4 5 6 7, the bright, settled reference every other mode gets measured against.
Melodies in Cb major feel grounded when they rest on Cb, Eb or Gb, the notes of the home chord. Land a phrase on Bb and it sounds unfinished; singers naturally want to lift it up a half step to Cb. Land on Fb and the line wants to drop to Eb. Use those tendencies on purpose. End a verse phrase on Bb to keep listeners hanging, then resolve to Cb at the chorus. Songwriters do this instinctively; knowing why helps you do it deliberately.
On a standard-tuned guitar, you'll find the root Cb (the same pitch as B) on the low E string at frets 7 and 19, and on the A string at frets 2 and 14. Start a major scale shape from the 7th fret on the low E string, or the 2nd fret on the A string, and you're there. Many guitar charts will call this key B major, so don't be surprised by the name change.
Play Gb7 and hold it. Sing the Bb inside the chord, then switch to Cb major and slide your voice up one half step to Cb. Do it again, this time singing Fb and stepping down to Eb. Two tiny moves, and you'll have felt the whole engine of this key in your own voice.
For the bigger picture, read The Major Scale (Ionian Mode).