slateblue — #6A5ACD
#6A5ACD
rgb(106, 90, 205) · hsl(248, 53%, 58%) · CSS keyword slateblue
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| slateblue on white | 5.31:1 | AA | AA |
| slateblue on black | 3.96:1 | — | AA |
As a background, slateblue takes white text: 5.31:1 against 3.96:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: slateblue;
color: #6a5acd;
color: rgb(106 90 205);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to slateblue
- mediumslateblue — #7B68EE
- royalblue — #4169E1
- mediumpurple — #9370DB
- rebeccapurple — #663399
- dimgray — #696969
- slategray — #708090
Frequently asked questions
What is the hex code for slateblue?
The hex code for slateblue is #6A5ACD — RGB 106, 90, 205.
Can I use slateblue for text?
Yes. slateblue reaches 5.31:1 against white, past the 4.5:1 that WCAG AA asks for body text.
Should text on slateblue be black or white?
White — 5.31:1 against 3.96:1 the other way.
Other named colours
- slategray — #708090
- snow — #FFFAFA
- springgreen — #00FF7F
- steelblue — #4682B4
- tan — #D2B48C
- teal — #008080
- thistle — #D8BFD8
- tomato — #FF6347
- turquoise — #40E0D0
- violet — #EE82EE
- wheat — #F5DEB3
- white — #FFFFFF
#6A5ACD in full — tints, shades and harmonies · All named colours · Colour reference