Golden Hour vs Blue Hour
Four moments around sunset: golden hour, sunset, blue hour and night, with sky colour and a colour temperature readout.
AI prompt
Cinematic wide shot of a quiet town at blue hour, a deep cobalt sky fading to pale blue near the horizon, dark silhouette rooftops and hills, every window glowing warm amber against the cool blue light, a thin crescent moon, still air, soft film grain, 35mm lens, calm and slightly melancholic. Variants: golden hour with long warm shadows and a low yellow sun, and sunset with a red-orange horizon. Negative: harsh midday light, oversaturated neon, text, people, logos. Reduced motion: static image.About this pattern
Definition
Golden hour is the warm, low-angle light just after sunrise or before sunset; blue hour is the cool, even twilight after the sun has dropped below the horizon. Together they are the most photographed minutes of the day because of the strong contrast in colour temperature.
When to use it
- Golden hour: low sun, long soft shadows, warm light near 3500K.
- Sunset: deep orange and red near the horizon, high contrast with the dark foreground.
- Blue hour: no direct sun, cool blue sky and warm artificial lights.
- Night: dark sky, lit windows and a small moon.
What the controls do
- Four moment buttons with a description and colour temperature.
Motion & timing
- The scene changes instantly.
- Reduced motion: nothing animates.
Tips & variations
- In prompts name the moment and the temperature mood, not just evening.
- Add warm window lights to blue hour for the classic contrast.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Moment"><button data-p="0" aria-pressed="true">Golden hour</button><button data-p="1" aria-pressed="false">Sunset</button><button data-p="2" aria-pressed="false">Blue hour</button><button data-p="3" aria-pressed="false">Night</button></div><div class="sc" id="sc"><i class="sn"></i><i class="hl"></i><div class="tw"><b></b><b></b><b></b><b></b><b></b><b></b></div></div><p class="out" id="out"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:130px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(var(--s1),var(--s2))}.sn{position:absolute;left:62%;bottom:var(--sy);width:var(--ss);height:var(--ss);margin-left:-14px;border-radius:50%;background:var(--sc);box-shadow:0 0 28px 10px var(--sg)}.hl{position:absolute;left:0;right:0;bottom:0;height:46%;background:var(--hc);clip-path:polygon(0 60%,18% 25%,36% 55%,58% 20%,80% 50%,100% 30%,100% 100%,0 100%)}
.tw{position:absolute;left:10%;bottom:0;width:36%;height:52%;background:var(--hc);display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;align-content:start}.tw b{height:9px;background:#ffc866;opacity:var(--wo);border-radius:1px;box-shadow:0 0 6px rgba(255,190,90,.8)}.out{min-height:34px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const D=[['#6fa9de','#ffd9a0','30px','28px','#fff1bf','rgba(255,220,140,.8)','#3b3a2f',0,'About 3500 K. Low warm sun, long soft shadows, gentle contrast.'],['#4a4a8c','#ff8a5c','4px','30px','#ffc489','rgba(255,130,70,.8)','#2a2230',.25,'About 2500 K. Red-orange horizon, dark foreground, high drama.'],['#142450','#6a86c9','-40px','0px','#fff','transparent','#0f1526',1,'Cool 9000 to 12000 K sky with warm 2700 K window lights: the classic contrast.'],['#050814','#16203f','70px','14px','#eef1ff','rgba(220,230,255,.5)','#0b0f1e',1,'Almost no ambient light. Lit windows and a small moon carry the scene.']],sc=document.getElementById('sc'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const d=D[p];['--s1','--s2','--sy','--ss','--sc','--sg','--hc','--wo'].forEach((k,i)=>sc.style.setProperty(k,d[i]));document.getElementById('out').textContent=d[8];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Golden Hour vs Blue Hour — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:130px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(var(--s1),var(--s2))}.sn{position:absolute;left:62%;bottom:var(--sy);width:var(--ss);height:var(--ss);margin-left:-14px;border-radius:50%;background:var(--sc);box-shadow:0 0 28px 10px var(--sg)}.hl{position:absolute;left:0;right:0;bottom:0;height:46%;background:var(--hc);clip-path:polygon(0 60%,18% 25%,36% 55%,58% 20%,80% 50%,100% 30%,100% 100%,0 100%)}
.tw{position:absolute;left:10%;bottom:0;width:36%;height:52%;background:var(--hc);display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;align-content:start}.tw b{height:9px;background:#ffc866;opacity:var(--wo);border-radius:1px;box-shadow:0 0 6px rgba(255,190,90,.8)}.out{min-height:34px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Moment"><button data-p="0" aria-pressed="true">Golden hour</button><button data-p="1" aria-pressed="false">Sunset</button><button data-p="2" aria-pressed="false">Blue hour</button><button data-p="3" aria-pressed="false">Night</button></div><div class="sc" id="sc"><i class="sn"></i><i class="hl"></i><div class="tw"><b></b><b></b><b></b><b></b><b></b><b></b></div></div><p class="out" id="out"></p></div>
</div>
<script>
const D=[['#6fa9de','#ffd9a0','30px','28px','#fff1bf','rgba(255,220,140,.8)','#3b3a2f',0,'About 3500 K. Low warm sun, long soft shadows, gentle contrast.'],['#4a4a8c','#ff8a5c','4px','30px','#ffc489','rgba(255,130,70,.8)','#2a2230',.25,'About 2500 K. Red-orange horizon, dark foreground, high drama.'],['#142450','#6a86c9','-40px','0px','#fff','transparent','#0f1526',1,'Cool 9000 to 12000 K sky with warm 2700 K window lights: the classic contrast.'],['#050814','#16203f','70px','14px','#eef1ff','rgba(220,230,255,.5)','#0b0f1e',1,'Almost no ambient light. Lit windows and a small moon carry the scene.']],sc=document.getElementById('sc'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const d=D[p];['--s1','--s2','--sy','--ss','--sc','--sg','--hc','--wo'].forEach((k,i)=>sc.style.setProperty(k,d[i]));document.getElementById('out').textContent=d[8];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));up();
</script>
</body></html>