Midnight color: hex code #03012D
Midnight has the hex code #03012D. It is a very dark, vivid blue.
In the RGB color model it is made of 1.2% red, 0.4% green and 17.6% blue (3, 1, 45).
Its hue angle is 243°, with 96% saturation and 9% lightness. For print, the CMYK equivalent is 93% cyan, 98% magenta, 0% yellow and 82% black.
White text is the more readable choice on this background (contrast 20.07:1).
Midnight (#03012D) color codes
| HEX | #03012D | |
|---|---|---|
| RGB | rgb(3, 1, 45) | |
| RGB percent | rgb(1.2%, 0.4%, 17.6%) | |
| HSL | hsl(243, 96%, 9%) | |
| HSV / HSB | hsv(243, 98%, 18%) | |
| CMYK | cmyk(93%, 98%, 0%, 82%) | |
| CIE LAB | lab(2.08, 12.41, -25.66) | |
| CIE LCH | lch(2.08, 28.5, 295.8) | |
| CIE XYZ | xyz(0.522, 0.23, 2.499) | |
| Decimal | 196909 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Midnight, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #03012D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.05:1 | Fail | Fail | Fail |
| Sample text | 20.07:1 | Pass | Pass | Pass |
| #03012D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 20.07:1 | Pass | Pass | Pass |
| Sample text | 1.05:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #03012D looks to people with the most common types of color vision deficiency.
#000a2eProtanopia
no red cones#00062cDeuteranopia
no green cones#000d16Tritanopia
no blue cones#080808Achromatopsia
no color vision
CSS examples
.background { background-color: #03012d; }
.text { color: #03012d; }
.border { border: 2px solid #03012d; }
.transparent { background-color: rgb(3 1 45 / 50%); }
.gradient { background: linear-gradient(to right, #03012d, #19012d); }
Similar colors
#00022eIllicit Darkness#000435Oblivion#071037Infinite Night#060929Mysterious Depths#041330Squid’s Ink#111144Deadly Depths#000b44Storm#160435Quiet Abyss
Closest common color name: Oxford Blue.
See #03012D on its hex code page
Questions
- What color is #03012D?
- #03012D is a very dark, vivid blue known as Midnight. It belongs to the black family of colors.
- What is the RGB value of Midnight?
- The RGB value is 3, 1, 45: 3 red, 1 green and 45 blue on a 0 to 255 scale.
- What is the complementary color of Midnight?
- The complementary color is #2B2D01, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #03012D?
- White text. Black text has a contrast ratio of 1.05:1 and white text 20.07:1. WCAG asks for at least 4.5:1 for normal text.