Slate Blue Hex Code #6A5ACD
Slate Blue is a medium, strong purple with the hex code #6A5ACD. In RGB it is 106, 90, 205, and in HSL it is 248°, 53%, 58%. It is one of the 148 named colors in CSS, so you can write “slateblue” instead of the hex code.
- HEX
- #6A5ACD
- RGB
- rgb(106, 90, 205)
- HSL
- hsl(248, 53%, 58%)
- HSV
- hsv(248°, 56%, 80%)
- CMYK
- cmyk(48%, 56%, 0%, 20%)
- CSS name
- slateblue
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Slate Blue
On a white background Slate Blue has a contrast ratio of 5.31:1 (AA), and on black 3.96:1 (AA Large). White text is the better choice on top of it.
It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.
Purple combines the calm of blue with the energy of red. It reads as creative and premium, and is often used by design, media and beauty brands.
Shades and tints of Slate Blue
Tints mix Slate Blue with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Slate Blue
These schemes are calculated from Slate Blue on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Slate Blue is #CDAE5A, close to the named color Dark Khaki.
Slate Blue contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Slate Blue scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 5.31:1 | ✓ Pass | ✓ Pass | ✕ Fail | ✓ Pass |
| Black (#000000) | 3.96:1 | ✕ Fail | ✓ Pass | ✕ Fail | ✕ Fail |
Slate Blue and color blindness
These are approximate previews of how Slate Blue can look with the main types of color vision deficiency.
Slate Blue changes noticeably.
Slate Blue changes noticeably.
Slate Blue changes noticeably.
Slate Blue changes noticeably.
Gradients with Slate Blue
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Slate Blue to a lighter tint
background: linear-gradient(135deg, #6a5acd 0%, #c3bdeb 100%); Slate Blue to its analogous neighbour
background: linear-gradient(135deg, #6a5acd 0%, #a45acd 100%); Slate Blue to its complement
background: linear-gradient(135deg, #6a5acd 0%, #bdcd5a 100%); Colors similar to Slate Blue
How each close match differs from Slate Blue.
Use Slate Blue in code
.element {
color: #6a5acd;
background-color: #6a5acd;
border-color: slateblue; /* slateblue is a valid CSS color name */
} :root {
--color-slate-blue: #6a5acd;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#6a5acd] text-[#6a5acd] border-[#6a5acd]"></div>
/* Tailwind v4 theme color */
@theme {
--color-slate-blue: #6a5acd;
} Slate Blue questions
What is the hex code for Slate Blue?
The hex code for Slate Blue is #6A5ACD. In RGB that is rgb(106, 90, 205), and in HSL it is hsl(248, 53%, 58%).
What is the complementary color of Slate Blue?
On the RGB (screen) color wheel, the complement of Slate Blue is #BDCD5A, which is close to Khaki. On the artist’s RYB wheel it is #CDAE5A, close to Dark Khaki.
Should I use white or black text on Slate Blue?
White text. It has a contrast ratio of 5.31:1 against Slate Blue, which is WCAG AA. The other option scores 3.96:1.
Is Slate Blue accessible as a text color on white?
Yes. Slate Blue on white scores 5.31:1, which passes WCAG AA for normal text (4.5:1).
What are darker and lighter shades of Slate Blue?
Mixing Slate Blue with black gives #5548A4, #40367B, #2A2452, #151229 (20% to 80% black). Mixing it with white gives #887BD7, #A69CE1, #C3BDEB, #E1DEF5 (20% to 80% white).