Random hex colour generator
Nearest named colour: midnightblue
Calculated in your browser · nothing is uploaded
Generates random hex codes from your browser’s cryptographic source, held in a usable saturation and lightness band rather than drawn uniformly from the RGB cube.
How to use the random hex colour generator
Uniform random RGB sounds like the obvious implementation and produces a disappointing result: most of the RGB cube is low-saturation, so a truly uniform draw returns muddy near-greys far more often than anything you would use. Constraining the bands is what makes the output useful. If you specifically need uniform random RGB — for test fixtures, or to demonstrate that point — this is not doing that, and it is worth knowing which one you have.
Questions
No, deliberately. A uniform draw returns mostly muddy greys. The bands are constrained to keep the output usable.