Slate Blue Color Code: Hex #6A5ACD
The hex code for Slate Blue is #6A5ACD (the CSS keyword slateblue). Slate Blue RGB code: rgb(106, 90, 205). The xkcd color survey gives #5B7C99 instead, which looks clearly different; both codes are below with their source.
#6A5ACDTop: the code browsers use#5B7C99Below: compare edge to edgeSlate Blue color codes: each Slate Blue hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 2 color lists; they look clearly different
- Family
- purple
- Contrast
- 5.31:1 with white, 3.96:1 with black
- CSS keyword
- slateblue
- Character
- dark, vivid
- Readable text on it
- white (AA)
Slate blue is recorded as a color name in English from 1796.
A dark, vivid violet with a cool cast. In code, slateblue gives exactly this web value. If you mean the color as people usually picture the name, the survey value #5B7C99 is closer: it is lighter and more muted.
White text reads best on it; black text works only for large headings. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Medium Slate Blue, its closest named neighbour, it looks darker, more muted and warmer; beside Royal Blue it looks about as light, more muted and warmer.
Colors that go with Slate Blue
Complementary: the opposite of Slate Blue
#6A5ACDWhite text 5.31:1#7A7300White text 4.91:1#A8A5E7Black text 9.20:1#494400White text 9.95:1
Analogous
#156DD0White text 5.08:1#6A5ACDWhite text 5.31:1#9549B2White text 5.42:1#BEBEEFBlack text 11.80:1
Triadic
#6A5ACDWhite text 5.31:1#B54B00White text 5.29:1#008460White text 4.70:1#D6D6F5Black text 14.80:1
Monochrome
#181338White text 17.66:1#3F357EWhite text 10.39:1#6A5ACDWhite text 5.31:1#928DDFBlack text 7.10:1#BEBEEFBlack text 11.80:1
With neutrals
#6A5ACDWhite text 5.31:1#D6D6F5Black text 14.80:1#070519White text 20.10:1#787799Black text 4.90:1
Preview
Heading on Slate Blue
Body text on this color, 5.31:1.
ButtonHeading in Slate Blue
Text in this color on white, 5.31:1.
ButtonTints and shades
#D6D6F5#BEBEEF#A8A5E7#928DDF#7D74D6#6A5ACD#5447A5#3F357E#2B235A#181338#070519
WhiteSlate BlueBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Blue-gray” (checked 2 Nov 2026)
- Listed in CSS Color 4, xkcd color survey. About these lists.
Try it: