AfoliOpen Afoli →

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%.

Open in Afoli Colour tools →

#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

PairWCAG 2.x ratioAPCA LcResult
Night Blue text on white18.89 : 1105AAA — any text
Night Blue text on black1.11 : 10Fails for text
White text on Night Blue18.89 : 1-107AAA — any text
Black text on Night Blue1.11 : 10Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

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

Sources and licences

Updated November 21, 2026