CSS background gradient not working as expected
<p>I plan on having 3 stripes on a DIV, but this isn't working as expected:</p>

<p><a href="https://jsfiddle.net/1wzg0xep/" rel="nofollow noreferrer">https://jsfiddle.net/1wzg0xep/</a></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#box {
  border: 1px solid #ccc;
  width: 400px;
  height: 400px;
  background: linear-gradient(to top, rgba(18, 61, 87, 1) 34%, rgba(0, 0, 0, 0.6) 33%, rgba(18, 61, 87, 1) 34%);
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="box"&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p>If I make the 2 colors 50%, it works, but having 3 colours just creates a solid colour. Am I missing something here?</p>