Slate Blue color (#6A5ACD)
Slate Blue is one of the 148 CSS named colors. Use the keyword slateblue
anywhere CSS accepts a color, or its hex code #6A5ACD, which is rgb(106, 90, 205) in RGB.
It is a medium, vivid cool color with a hue angle of 248° on the HSL color wheel and a perceived lightness of 54% in OKLCH. On a slate blue background, white text gives the higher contrast at 5.30:1, which passes WCAG AA for normal text.
Slate Blue color codes
| CSS name | slateblue |
|
|---|---|---|
| HEX | #6A5ACD |
|
| HEX (8-digit) | #6A5ACDFF |
|
| RGB | rgb(106, 90, 205) |
|
| HSL | hsl(248, 54%, 58%) |
|
| HSV / HSB | hsv(248, 56%, 80%) |
|
| OKLCH | oklch(54.4% 0.1712 285.5) |
|
| CMYK | cmyk(48.3%, 56.1%, 0%, 19.6%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for slate blue used as text and as a background.
Tints and shades of slate blue
Tints mix slate blue with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with slate blue
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Slate Blue with color blindness
Approximately how slate blue appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using slate blue in CSS
.element {
color: slateblue;
background-color: #6a5acd;
border-color: rgb(106 90 205 / 50%);
outline-color: oklch(54.4% 0.1712 285.5);
}Similar named colors
See all shades of purple or browse every CSS color name.