Slate Blue #6A5ACD

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.

Aa Sample text
Slate Blue text on white
5.30:1 WCAG Lc 76.1 APCA Passes AA
Aa Sample text
Slate Blue text on black
3.95:1 WCAG Lc -25.7 APCA AA large text only
Aa Sample text
White text on slate blue
5.30:1 WCAG Lc -81.4 APCA Passes AA
Aa Sample text
Black text on slate blue
3.95:1 WCAG Lc 28 APCA AA large text only

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.

Related tools