All posts

Why Does Blue Text Look Blurry on a Dark Background? Chromatic Aberration and Dark Mode Legibility

Place a line of pure, saturated blue text (#0000FF) or royal link blue (#2563EB) on a dark-mode background (#000000 or #0F1115), and something deeply uncomfortable happens to your eyes: the letters appear fuzzy, fringed with a glowing halo, and strangely sunken or floating at a different depth than the surrounding white text. Even readers with 20/20 vision feel an involuntary urge to squint. The bug isn't in your monitor's subpixels — it is built into the refractive optics and retinal anatomy of the human eye.

As measured via adaptive-optics Hartmann-Shack wavefront sensing in NIH / PubMed Central's Study of Longitudinal Chromatic Aberration of the Human Eye (PMC4361447), PMC's Visual Strehl Ratio & Blue Defocus Study (PMC7801416), and documented in Wikipedia's Clinical Overview of Chromostereopsis, short-wavelength blue light (450 nm) suffers -0.87 to -1.50 diopters of myopic defocus relative to green/yellow light (550 nm). To test and fix dark-mode link contrast and chromatic legibility across your own design tokens, Test dark-mode contrast and color accessibility in Lumet.

Comparison between pure saturated blue (#0000FF on #0F1115 with 2.28:1 contrast failure and -1.30 diopters chromatic defocus) versus desaturated sky/ice blue (#60A5FA and #93C5FD passing WCAG AAA at 7.62:1 to 10.85:1)
Pure blue (#0000FF) fails WCAG contrast on dark surfaces (2.28:1) while focusing in front of the retina (-1.30 D); desaturating dark-mode links to #60A5FA or #93C5FD adds 550 nm green luminance to lock onto foveal M/L cones (7.62:1–10.85:1).

1. Longitudinal Chromatic Aberration (LCA): Why 450 nm Blue Focuses in Front of Your Retina

Unlike a multi-element camera lens that pairs crown and flint glass to cancel out color fringing (an achromatic doublet), the human cornea and crystalline lens are simple water-based biological lenses whose refractive index rises as wavelength gets shorter. Across the visible spectrum (400 nm violet to 700 nm red), the human eye exhibits roughly 2.0 diopters of total Longitudinal Chromatic Aberration (LCA) (PMC4361447):

Horizontal bar chart comparing WCAG 2.1 contrast ratio on dark surface #0F1115 and ocular defocus across Pastel Ice Blue (#93C5FD, 10.85:1), Sky Blue (#60A5FA, 7.62:1), Pure Red (#FF0000, 4.92:1), Light-Mode Royal Blue (#2563EB, 3.84:1), and Pure Blue (#0000FF, 2.28:1)
WCAG 2.1 luminance contrast ratio on a #0F1115 dark-mode surface alongside ocular chromatic defocus (diopters). Download the dark-mode blue text & chromatic aberration dataset (CSV).

2. Why Dark Mode Makes Blue Blur Twice as Bad: Dilated Pupils + The Foveal S-Cone Blind Spot

Why does a saturated blue hyperlink (#0000FF or #2563EB) look reasonably sharp on a white background in light mode, yet turn into an unreadable smear on a #0F1115 dark-mode screen? Three physiological mechanisms amplify the defect in dark mode (PMC7801416):

  1. Positive vs. Negative Polarity: On a white background (#FFFFFF), a blue letter is formed by blocking red and green light while the bright white background keeps your eye anchored on sharp 550 nm edges. On a black background (#000000), only the 450 nm blue subpixels emit light — giving your visual cortex zero sharp green/red edge luminance to lock onto.
  2. Dark-Adapted Pupil Dilation (2.5 mm vs. 5.5 mm): On a bright white screen, your pupil constricts to 2–3 mm, creating a deep optical depth of field (like shooting a camera lens at f/8) that masks chromatic defocus. On a dark screen in a dim room, your pupil dilates to 5–6 mm (like shooting wide open at f/1.4), doubling the diameter of the blue blur circle on the retina.
  3. The Central Foveola Has Almost Zero Blue Cones: To prevent blurred blue light from degrading human visual acuity, evolution eliminated short-wavelength S-cones (blue photoreceptors) from the central 0.35 mm (1 degree) of the human foveola — and across the entire retina, S-cones make up fewer than 2% to 7% of all cones! Your sharpest central vision is literally blind to pure blue luminance edges.

"You cannot read fine dark-mode typography with your S-cones. Desaturating dark-mode blue from #2563EB to #60A5FA or #93C5FD mixes 550 nm green and red light into the stroke so your high-density foveal M and L cones can resolve a razor-sharp edge."

Color Swatch & Hex Peak Wavelength Ocular Defocus (LCA) WCAG Contrast (#0F1115) WCAG Rating Dark-Mode Optical Outcome
Pastel Ice Blue (#93C5FD) 492 nm + 550 nm mix -0.12 D (Minimal) 10.85:1 PASS AAA (≥7.0:1) Crisp foveal M/L edge; zero chromatic halo
Desaturated Sky Blue (#60A5FA) 485 nm + 550 nm mix -0.25 D (Low) 7.62:1 PASS AAA (≥7.0:1) Ideal dark-mode primary link & interactive accent
Pure Saturated Red (#FF0000) 650 nm +0.45 D (Behind retina) 4.92:1 AA / Chromatic clash Triggers 3D chromostereopsis depth shimmer
Light-Mode Link Blue (#2563EB) 470 nm -0.75 D (In front) 3.84:1 FAIL AA (<4.5:1) Too dim on dark surfaces; visible blue fringe
Pure Saturated Blue (#0000FF) 450 nm -1.30 D (Severe myopic) 2.28:1 FAIL (<4.5:1) Severe blur circle + foveal S-cone scarcity

How to Audit Dark-Mode Link Tokens Before Shipping

Whenever converting a light-mode design system (#1D4ED8 or #2563EB links on white) to dark mode (#0F1115 or #121212 surfaces), shift your blue accent 300 to 400 steps lighter on your palette ramp (#60A5FA or #93C5FD) so relative luminance rises from 0.07 to 0.35–0.52. Test dark-mode contrast and color accessibility in Lumet to verify WCAG AA/AAA ratios and preview chromatic edge clarity, and download the dark-mode blue chromatic aberration CSV table.