slate blue color code
The hex code for slate blue is #6A5ACD, which is rgb(106, 90, 205) in RGB and cmyk(48%, 56%, 0%, 20%) in CMYK. It's a medium, moderately saturated blue. It is a built-in CSS colour, so you can also write it as “slateblue”.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer slate blue; the codes update as you go.
Slate Blue colour codes
| HEX | #6A5ACD |
|---|---|
| RGB | rgb(106, 90, 205) |
| HSL | hsl(248, 53%, 58%) |
| HSV / HSB | hsv(248, 56%, 80%) |
| CMYK | cmyk(48%, 56%, 0%, 20%) |
| Decimal | 6970061 |
| CSS keyword | slateblue |
About slate blue
Slate Blue sits at a hue of 248° on the colour wheel, with 53% saturation and 58% lightness. That makes it a cool colour: cool colours feel calm and steady and appear to recede, so they work well for large areas.
For text, white reads better on slate blue. Slate Blue as text on a white background has a contrast ratio of 5.3:1, which passes the WCAG AA rule for body text (4.5:1). On black it is 3.95:1, which fails AA for body text.
Tints and shades of slate blue
Tints mix slate blue with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with slate blue
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Slate Blue text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| slate blue on white | 5.3:1 | pass | pass | fail |
| slate blue on black | 3.95:1 | fail | pass | fail |
Check slate blue against any other colour in the contrast checker.
How slate blue looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use slate blue in code
.slate-blue {
color: slateblue;
background-color: #6a5acd;
border-color: rgb(106, 90, 205);
}Frequently asked questions
What is the hex code for slate blue?
Slate Blue is #6A5ACD (lowercase #6a5acd). It's the official value of the CSS keyword “slateblue”.
What is slate blue in RGB, HSL and CMYK?
RGB: rgb(106, 90, 205). HSL: hsl(248, 53%, 58%). CMYK: cmyk(48%, 56%, 0%, 20%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with slate blue?
Its complementary colour is #BDCD5A (close to yellow green), which gives the strongest contrast. For a calmer look, use the analogous colours #5A84CD and #A45ACD, or the triadic pair #CD6A5A and #5ACD6A. Tints and shades of slate blue itself always work together.
Is slate blue a warm or cool colour?
Slate Blue has a hue of 248°, which makes it cool.
Should I use black or white text on slate blue?
White. Black text on slate blue has a contrast ratio of 3.95:1 and white text has 5.3:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
How do I use slate blue in CSS?
Write color: slateblue; or color: #6a5acd; — both give the same colour. Named colours work in every browser.