CSS named color
DarkSlateBlue #483D8B
DarkSlateBlue (CSS keyword darkslateblue) has the hex code #483D8B and the RGB value rgb(72, 61, 139): a dark, moderately saturated blue-violet.
A deep, grayish indigo, the darkest of the three slate blues. It works as a dark accent that is less stark than navy.
Color codes for DarkSlateBlue
| CSS keyword | darkslateblue |
|---|---|
| HEX | #483D8B |
| RGB | rgb(72, 61, 139) |
| HSL | hsl(248, 39%, 39%) |
| HWB | hwb(248 24% 45%) |
| OKLCH | oklch(41.4% 0.125 286) |
| CMYK (naive, no ICC profile) | cmyk(48%, 56%, 0%, 45%) |
| Decimal | 4,734,347 |
| Hue family | Purples and violets |
Contrast and accessibility
On darkslateblue, white text has a contrast ratio of 9.06:1 and passes AAA at any text size; black text reaches 2.31:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on darkslateblue | 2.31:1 | Fail | Fail | Fail | Fail | 13.4 |
| White text on darkslateblue | 9.06:1 | Pass | Pass | Pass | Pass | −95.0 |
| Darkslateblue text on white | 9.06:1 | Pass | Pass | Pass | Pass | 90.6 |
| Darkslateblue text on black | 2.31:1 | Fail | Fail | Fail | Fail | −11.7 |
Tints and shades
Each step mixes darkslateblue with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, darkslateblue, white 25%) in CSS.
Tints (mixed with white)
- 5%
#514791 - 15%
#635a9c - 25%
#766ea8 - 35%
#8881b4 - 45%
#9a94bf - 55%
#ada8cb - 65%
#bfbbd6 - 75%
#d1cfe2 - 85%
#e4e2ee - 95%
#f6f5f9
Shades (mixed with black)
- 5%
#443a84 - 15%
#3d3476 - 25%
#362e68 - 35%
#2f285a - 45%
#28224c - 55%
#201b3f - 65%
#191531 - 75%
#120f23 - 85%
#0b0915 - 95%
#040307
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, darkslateblue's complementary color is #544E00 (close to darkolivegreen), its analogous colors are #134A8D and #653178, and its triadic partners are #7F2F00 and #005D3D. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #544e00 |
| Analogous | −30°, +30° | #134a8d#653178 |
| Triadic | +120°, +240° | #7f2f00#005d3d |
| Split-complementary | +150°, +210° | #6c4100#275a00 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
DarkSlateBlue is a cool color: its hue is 248° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| rebeccapurple | #663399 | 6.1 |
| indigo | #4b0082 | 10.1 |
| darkslategray | #2f4f4f | 13.1 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| indigo-900 | #312c85 | 6.1 |
| blue-900 | #1c398e | 6.3 |
| violet-900 | #4d179a | 7.6 |
Code snippets
.element {
color: darkslateblue;
background-color: #483d8b;
border-color: rgb(72 61 139);
outline-color: oklch(41.4% 0.125 286);
}<div class="bg-[#483d8b] text-white">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-darkslateblue: #483d8b;
}
/* then use bg-darkslateblue, text-darkslateblue, border-darkslateblue */import SwiftUI
extension Color {
static let darkslateblue = Color(red: 0.282, green: 0.239, blue: 0.545)
}import androidx.compose.ui.graphics.Color
val Darkslateblue = Color(0xFF483D8B)import 'package:flutter/material.dart';
const darkslateblue = Color(0xFF483D8B);<!-- res/values/colors.xml -->
<color name="darkslateblue">#483D8B</color>Frequently asked questions
- What is the hex code for darkslateblue?
- The hex code for darkslateblue is #483D8B. The same color is rgb(72, 61, 139), hsl(248, 39%, 39%) and oklch(41.4% 0.125 286), and in CSS you can also write the keyword darkslateblue directly.
- Is darkslateblue a warm or cool color?
- DarkSlateBlue is a cool color: its hue is 248° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
- What colors go with darkslateblue?
- Rotating the hue in OKLCH while keeping lightness and chroma, darkslateblue's complementary color is #544E00 (close to darkolivegreen), its analogous colors are #134A8D and #653178, and its triadic partners are #7F2F00 and #005D3D. For text on top, white gives the higher contrast.
- Can you use white text on darkslateblue?
- White text on darkslateblue has a contrast ratio of 9.06:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.31:1 and fails AA even for large text. In APCA terms that is Lc −95.0 for white and Lc 13.4 for black.
- What is the RGB value of darkslateblue?
- DarkSlateBlue is rgb(72, 61, 139): red 72, green 61 and blue 139 on the 0 to 255 scale, or 28.2%, 23.9% and 54.5%. As a decimal integer it is 4734347.
Last reviewed by Arielton Oberek.