Midnight Color — #03012D: Codes, Palettes & Contrast

Midnight (#03012D) 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 is a named black color, ready to use anywhere you need it.

Midnight#03012D

Midnight color codes

HEX#03012D
RGBrgb(3, 1, 45)
HSLhsl(243, 96%, 9%)
OKLCHoklch(0.142 0.088 270.7)

Browse more black colors.

Readable text on Midnight

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

Text colorRatioNormal text AANormal text AAA
Black1.05:1FailFail
White20.07: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