#02022F Hex Color

Almost black, faintly navy

Hex color #02022f graphic
Not quite black, #02022f is a sooty shade of black with a faint navy undertone. Its near-zero lightness gives it a heavy, serious feel that suits dark mode backgrounds and formal branding. White text reads clearly on it at roughly 20:1 contrast. Pair it with muted brass or burgundy so the mood stays rich instead of flat.

Questions about #02022f

What is #02022f in RGB, HSL and CMYK?
In RGB, #02022f is rgb(2, 2, 47), in HSL hsl(240, 92%, 10%) and in CMYK 96%, 96%, 0%, 82%. Browse more shades of black with names and hex codes.
What text color works best on #02022f?
White text is the safest choice on #02022f, with a contrast ratio of about 20.0:1. That clears WCAG AAA for body text, so small type stays readable. Muted warm grays also work for secondary text.
What colors pair well with #02022f?
Muted brass and burgundy flatter #02022f without brightening its somber character. Soft warm grays help too, since pure white can look harsh against a near-black this dark.
Is #02022f readable on white or black?
#02022f has a 19.95:1 contrast ratio on white and 1.05:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.