Skip to content

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.

DarkSlateBlue#483D8B

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

Color codes for DarkSlateBlue
CSS keyworddarkslateblue
HEX#483D8B
RGBrgb(72, 61, 139)
HSLhsl(248, 39%, 39%)
HWBhwb(248 24% 45%)
OKLCHoklch(41.4% 0.125 286)
CMYK (naive, no ICC profile)cmyk(48%, 56%, 0%, 45%)
Decimal4,734,347
Hue familyPurples 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on darkslateblue2.31:1FailFailFailFail13.4
White text on darkslateblue9.06:1PassPassPassPass−95.0
Darkslateblue text on white9.06:1PassPassPassPass90.6
Darkslateblue text on black2.31:1FailFailFailFail−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)

  1. 5%
    #514791
  2. 15%
    #635a9c
  3. 25%
    #766ea8
  4. 35%
    #8881b4
  5. 45%
    #9a94bf
  6. 55%
    #ada8cb
  7. 65%
    #bfbbd6
  8. 75%
    #d1cfe2
  9. 85%
    #e4e2ee
  10. 95%
    #f6f5f9

Shades (mixed with black)

  1. 5%
    #443a84
  2. 15%
    #3d3476
  3. 25%
    #362e68
  4. 35%
    #2f285a
  5. 45%
    #28224c
  6. 55%
    #201b3f
  7. 65%
    #191531
  8. 75%
    #120f23
  9. 85%
    #0b0915
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
rebeccapurple#6633996.1
indigo#4b008210.1
darkslategray#2f4f4f13.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
indigo-900#312c856.1
blue-900#1c398e6.3
violet-900#4d179a7.6

Code snippets

CSS
.element {
  color: darkslateblue;
  background-color: #483d8b;
  border-color: rgb(72 61 139);
  outline-color: oklch(41.4% 0.125 286);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let darkslateblue = Color(red: 0.282, green: 0.239, blue: 0.545)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Darkslateblue = Color(0xFF483D8B)
Flutter
import 'package:flutter/material.dart';

const darkslateblue = Color(0xFF483D8B);
Android XML
<!-- 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.