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%.
#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
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Twilight text on white | 7.31 : 1 | 85 | AAA — any text |
| Twilight text on black | 2.87 : 1 | -17 | Fails for text |
| White text on Twilight | 7.31 : 1 | -90 | AAA — any text |
| Black text on Twilight | 2.87 : 1 | 19 | Fails for text |
Palettes with this color
- Perrywinkle & Almost Black
- Night Blue & Alice Blue (Mono)
- Steel Blue & Gainsboro
- Pale Purple & Dark Purple
- Twilight & Light Periwinkle
- Dusk & Light Lavendar
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
- Dusk #4E5481
- Dusky Blue #475F94
- Light Navy Blue #2E5A88
- Dusk Blue #26538D
- Denim #3B638C
- Dark Slate Blue #483D8B
- Cobalt #1E488F
- Deep Sea Blue #015482
- Peacock Blue #016795
- French Blue #436BAD
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)