Midnight blue color: hex codes, shades and palettes
Palettes built around midnight blue. Click any swatch to copy its hex code.
Nearly black, with just enough blue left to read as a colour rather than a neutral. Useful when a dark interface needs to feel cool without going grey.
Midnight blue hex, RGB, HSL and OKLCH
- HEX
#111D33- RGB
rgb(17, 29, 51)- HSL
hsl(219, 50%, 13%)- OKLCH
oklch(23.2% 0.046 261.7)- On white
- 16.84:1
- On black
- 1.25:1
Shades of midnight blue
9 steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Midnight blue color values
| RGB | 17 | 29 | 51 | |
|---|---|---|---|---|
| HSL | 219° | 50% | 13% | |
| HSV | 219° | 67% | 20% | |
| CMYK | 0.67 | 0.43 | 0.00 | 0.80 |
| XYZ | 1.2679 | 1.2368 | 3.3032 | |
| Yxy | 1.2368 | 0.2183 | 0.2130 | |
| CIE-Lab | 10.8262 | 2.9507 | -16.1247 | |
| Hunter Lab | 11.1212 | 0.8876 | -9.8255 | |
| OKLCH | 23.2% | 0.046 | 261.7° |
#111D33 is 17 red, 29 green and 51 blue. Its blue channel carries the most of it. The nearest of the 216 web safe colors is #003333.
CIE-Lab, XYZ and Yxy are measured against D65, the white point sRGB itself is defined against. Hunter Lab uses the original illuminant C constants, which is what paint and plastics specifications quote, so the two Lab rows are not directly comparable. CMYK is the plain arithmetic conversion: real ink values depend on the press, the paper and the profile.
| Base | Red | Green | Blue |
|---|---|---|---|
| Binary | 00010001 | 00011101 | 00110011 |
| Octal | 21 | 35 | 63 |
| Decimal | 17 | 29 | 51 |
| Hex | 11 | 1D | 33 |
#111d33 mixed with black
Ten even steps of the classic shade ramp, worked out in RGB, which is how the term has always been defined and how other references list it. The OKLCH scale further down this page answers a different question: it steps by equal perceived amounts, so its values are not the same.
- #111D33
- #0F1A2D
- #0D1728
- #0B1423
- #0A111E
- #080E19
- #060B14
- #05080F
- #03050A
- #010205
- #000000
#111d33 mixed with white
The tint ramp, by the same rule in the other direction.
- #111D33
- #283347
- #404A5B
- #586070
- #707784
- #888E99
- #9FA4AD
- #B7BBC1
- #CFD1D6
- #E7E8EA
- #FFFFFF
Channel shares
Color schemes
Turned in OKLCH rather than HSL, so every member keeps the lightness and chroma of the original instead of one of them arriving washed out.
Complementary
- #111D33
- #281B01
Triadic
- #111D33
- #301413
- #10230E
Analogous
- #111D33
- #1E1931
- #01212F
Monochromatic
- #000009
- #000009
- #000415
- #111D33
- #2E3B53
- #4D5C76
- #6F7E9A
#111d33 on black and on white
The quick brown fox jumps over the lazy dog. 1.25:1
The quick brown fox jumps over the lazy dog. 16.84:1
Body text needs 4.5:1 to meet AA and large text needs 3:1, so a ratio tells you which of the two backgrounds this color can be read on, and at what size.
CSS for #111d33
color: #111d33;
background-color: #111d33;
border: 3px solid #111d33;
box-shadow: 1px 1px 3px 2px #111d33;
text-shadow: 4px 4px 2px rgba(17, 29, 51, 0.8);
/* Perceptually even, and what a modern stylesheet wants */
color: oklch(23.2% 0.046 261.7);The OKLCH form is the same color stated so that lightening or darkening it moves by an amount the eye agrees with. Every current browser understands it.
Contrast and readability
Midnight blue on white measures 16.84:1 and on black 1.25:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.30:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
No midnight blue palettes yet
Run npm run generate to build the dataset.