Night Blue color #040348
Night Blue is a color name from the xkcd color survey for the hex code #040348 — RGB 4, 3, 72, HSL 241°, 92%, 15%.
#040348Night Blue
Color codes
- HEX
#040348- RGB
rgb(4, 3, 72)- HSL
hsl(241, 92%, 15%)- CMYK
94%, 96%, 0%, 72%- OKLCH
oklch(19.1% 0.12 267.8)
Tints and shades
#F1F5FF#CADAFF#A4BEFF#85A3F1#6D89D6#5670BB#4058A0#2B4086#18296D#081154#020035
Color harmonies
Complementary
#040348#1B1200
Analogous
#001625#040348#1C003B
Triadic
#040348#2F0000#001A04
Split complementary
#040348#230D00#121600
Tetradic
#040348#2C0014#1B1200#001914
Contrast with text
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Night Blue text on white | 18.89 : 1 | 105 | AAA — any text |
| Night Blue text on black | 1.11 : 1 | 0 | Fails for text |
| White text on Night Blue | 18.89 : 1 | -107 | AAA — any text |
| Black text on Night Blue | 1.11 : 1 | 0 | Fails for text |
Palettes with this color
- Night Blue & Alice Blue (Mono)
- Night Blue & Lavender
- Night Blue & Alice Blue
- Bright Olive & Night Blue
- Dark Indigo & Light Blue
- Cornflower & Navy Blue (Vivid)
Frequently asked questions
What is the hex code of Night Blue?
Night Blue has the hex code #040348, which is RGB 4, 3, 72 and HSL 241°, 92%, 15%.
Which text color reads best on Night Blue?
White text: contrast 18.89 : 1 (black text: 1.11 : 1).
Which colors go well with Night Blue?
Its complementary color is #1B1200; analogous colors are #001625 and #1C003B; a triadic set adds #2F0000 and #001A04.
Similar colors
- Navy Blue #001146
- Midnight #03012D
- Dark Indigo #1F0954
- Dark Royal Blue #02066F
- Midnight Purple #280137
- Midnight Blue #191970
- Navy #000080
- Deep Purple #36013F
- Marine #042E60
- Almost Black #070D0D
Sources and licences
- xkcd color survey (Randall Munroe, CC0 1.0)
- Afoli — conversions, shades, harmonies, WCAG 2.x / APCA contrast (tools/color/color-core.js)