AfoliOpen Afoli →

Twilight color #4E518B

Twilight is a color name from the xkcd color survey for the hex code #4E518B — RGB 78, 81, 139, HSL 237°, 28%, 43%.

Open in Afoli Colour tools →

#4E518BTwilight

Color codes

HEX
#4E518B
RGB
rgb(78, 81, 139)
HSL
hsl(237, 28%, 43%)
CMYK
44%, 42%, 0%, 45%
OKLCH
oklch(46% 0.094 279.8)

Tints and shades

#F3F4FF#D2D7FF#B3B9FC#9AA0E0#8186C5#6A6EAA#535691#3D3F78#29295F#171347#090030

Color harmonies

Complementary
#4E518B#655805
Analogous
#2A5B8A#4E518B#68487F
Triadic
#4E518B#83442E#196845
Split complementary
#4E518B#794D0E#476225
Tetradic
#4E518B#83404C#655805#006662

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Twilight text on white7.31 : 185AAA — any text
Twilight text on black2.87 : 1-17Fails for text
White text on Twilight7.31 : 1-90AAA — any text
Black text on Twilight2.87 : 119Fails 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 Twilight?

Twilight has the hex code #4E518B, which is RGB 78, 81, 139 and HSL 237°, 28%, 43%.

Which text color reads best on Twilight?

White text: contrast 7.31 : 1 (black text: 2.87 : 1).

Which colors go well with Twilight?

Its complementary color is #655805; analogous colors are #2A5B8A and #68487F; a triadic set adds #83442E and #196845.

Similar colors

Sources and licences

Updated November 21, 2026