Midnight Blue Color — #020035: Codes, Palettes & Contrast

Midnight Blue (#020035) color codes in RGB, HSL, and OKLCH, the most readable text color on it, WCAG contrast ratios against white and black, and matching color palettes.

Midnight Blue is a named black color, ready to use anywhere you need it.

Midnight Blue#020035

Midnight Blue color codes

HEX#020035
RGBrgb(2, 0, 53)
HSLhsl(242, 100%, 10%)
OKLCHoklch(0.151 0.101 267.6)

Browse more black colors.

Readable text on Midnight Blue

White text (#FFFFFF) has the higher contrast against this background: 19.92:1.

Text colorRatioNormal text AANormal text AAA
Black1.05:1FailFail
White19.92:1PassPass

Normal text requires at least 4.5:1 for WCAG AA and 7:1 for AAA. Check another combination.

Related named colors

Build a palette · Generate a color scale