Specific interactions are a hallmark feature of self-assembly and signal-processing systems in both synthetic and biological settings. Specificity between components may arise from a wide variety of physical and chemical mechanisms in diverse contexts, from DNA hybridization to shape-sensitive depletion interactions. Despite this diversity, all systems that rely on interaction specificity operate under the constraint that increasing the number of distinct components inevitably increases off-target binding. Here we introduce "capacity," the maximal information encodable using specific interactions, to compare specificity across diverse experimental systems and to compute how specificity changes with physical parameters. Using this framework, we find that "shape" coding of interactions has higher capacity than chemical ("color") coding because the strength of off-target binding is strongly sublinear in bindingsite size for shapes while being linear for colors. We also find that different specificity mechanisms, such as shape and color, can be combined in a synergistic manner, giving a capacity greater than the sum of the parts.S pecific interactions between many species of components are the bedrock of biochemical function, allowing signal transduction along complex parallel pathways and self-assembly of multicomponent molecular machines. Inspired by their role in biology, engineered specific interactions have opened up tremendous opportunities in materials synthesis, achieving new morphologies of self-assembled structures with varied and designed functionality. The two major design approaches for programming specific interactions use either chemical specificity or shape complementarity.Chemical specificity is achieved by dividing binding sites into smaller regions, each of which can be given one of A "colors" or unique chemical identities. Sites bind to each other based on the sum of the interactions between corresponding regions. For example, a recent two-color system paints the flat surfaces of three-dimensional polyhedra with hydrophobic and hydrophilic patterns (1) or with a pattern of solder dots (2), allowing polyhedra to stick to each other based on the registry between their surface patterns. Another popular approach uses DNA hybridization, where specific matching of complementary sequences has been used to self-assemble structures purely from DNA strands (3, 4) and from nanoparticles coated with carefully chosen DNA strands (5-9).Shape complementarity uses the shapes of the component surfaces to achieve specific binding, even though the adhesion is via a nonspecific, typically short-range potential. In the synthetic context, shape-based modulation of attractive forces over a large dynamic range was first proposed and experimentally demonstrated for colloidal particles (10, 11), using tunable depletion forces (12, 13). Recent experiments have explored the range of possibilities opened up by such ideas, from lithographically designed planar particles (14) with undulating profile patterns to "Pacman" partic...