CSS named color

Dark Slate Blue #483D8B

The CSS keyword darkslateblue is #483D8B. It is a dark soft violet in the violet family. In OKLCH it sits at lightness 0.414, chroma 0.125 and hue 286.0°.

Relative luminance
0.0658
OKLCH L · C · h
0.414 · 0.125 · 286.0
Best text
White 9.06:1
Hue family
Violet

#483D8B color codes

HEX
#483D8B
RGB
rgb(72, 61, 139)
HSL
hsl(248, 39%, 39%)
OKLCH
oklch(0.414 0.125 286.0)
OKLab
oklab(0.414 0.034 -0.120)
CIELAB (D65)
L* 30.83, a* 26.05, b* -42.08
XYZ (D65)
X 9.00, Y 6.58, Z 25.22
CMYK (naive)
cmyk(48%, 56%, 0%, 45%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #483D8B accessible?

White text on it reaches 9.06:1, passing AAA. Black text fails at 2.31:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    2.31:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +13
  • White text on it

    9.06:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −95
  • As text on black

    2.31:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −11
  • As text on white

    9.06:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +90

Nearest versions that pass 4.5:1

  • For text on white

    #483D8B 9.06:1

    It already reaches 9.06:1 on white, so no change is needed.

  • For text on black

    #726ABD 4.51:1

    Lightening its OKLCH lightness from 0.41 to 0.57 reaches 4.51:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #483D8B live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #483D8B

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #483D8B sits at step 800.

  1. 50#F4F4FF
    White
    1.09
    Black
    19.23
  2. 100#E9E9FF
    White
    1.19
    Black
    17.56
  3. 200#D3D2FF
    White
    1.45
    Black
    14.43
  4. 300#B8B4FF
    White
    1.90
    Black
    11.01
  5. 400#9B95EA
    White
    2.66
    Black
    7.88
  6. 500#8179CD
    White
    3.78
    Black
    5.54
  7. 600#6A62B3
    White
    5.23
    Black
    4.01
  8. 700#544B98
    White
    7.40
    Black
    2.83
  9. 800This color#483D8B
    White
    9.06
    Black
    2.31
  10. 900#271C59
    White
    15.03
    Black
    1.39
  11. 950#16083D
    White
    18.48
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #483D8B can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.241; #483D8B uses 52% of it. Display P3, which many recent phones and laptops show, reaches 0.246 there: 2% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.125
sRGB edge
0.241
Display P3 edge
0.246
Rec. 2020 edge
0.266
Dominant wavelength
458 nm
Excitation purity
56%
Chromaticity
x 0.2206, y 0.1613
  • This color#483D8B
  • Most vivid in sRGB#4E00C4
  • Most vivid in Display P3oklch(0.414 0.246 286.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #483d8b;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2783 0 0.7462); }
}

Mixing

Mixing #483D8B

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#A49EC5
  • OKLab50%#9D9BC6
  • OKLCH50%#9D9BC6

Black #000000

  • sRGB50%#241F46
  • OKLab50%#161232
  • OKLCH50%#161232

Its complement #524E00

  • sRGB50%#4D4646
  • OKLab50%#4A4A55
  • OKLCH50%#005758
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #483d8b, white);
color: color-mix(in oklch, #483d8b 50%, white);

In use

#483D8B in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:19.06:1 Passes
  • Link and body-size textText, 4.5:19.06:1 Passes
  • Large headingLarge text, 3:19.06:1 Passes
  • Icons, borders and focus ringsNon-text, 3:19.06:1 Passes

Dark page

  • Button labelText, 4.5:19.06:1 Passes
  • Link and body-size textText, 4.5:12.06:1 Fails
  • Large headingLarge text, 3:12.06:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.06:1 Fails

For text on this page, the nearest shade that passes is #7B73C7 4.56:1

Color vision

How #483D8B looks with color blindness

Achromatopsia changes it most, ΔE2000 23.9; deuteranopia changes it least, 10.9.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #124B8E ΔE2000 11.7

    Distinct

    Reads as dark soft blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #104689 ΔE2000 10.9

    Distinct

    Reads as dark soft blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #324E5E ΔE2000 12.0

    Distinct

    Reads as dark grayish blue

  • Achromatopsia

    No cone color vision; lightness only

    #494949 ΔE2000 23.9

    Distinct

    Reads as dark gray

Pairing check

Checked against its complement, #524E00. Their lightness contrast is only 1.05:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#483D8B · #524E0054.2Stays distinct
Protanopia#124B8E · #564B0048.0Stays distinct
Deuteranopia#104689 · #584D0747.7Stays distinct
Tritanopia#324E5E · #59484121.9Stays distinct
Achromatopsia#494949 · #4C4C4C1.0Easily confused

Harmony

Color harmonies for #483D8B

Its complement is #524E00, a dark muted yellow.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#483D8B
  • Complement#524E00

Complementary

Open in Harmony Studio
  • −30°#134A8D
  • Base#483D8B
  • +30°#653178
  • Base#483D8B
  • +120°#7C3200
  • +240°#005A41
  • Base#483D8B
  • +150°#664400
  • +210°#285900

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-darkslateblue: #483d8b;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        darkslateblue: '#483d8b',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-darkslateblue: oklch(0.414 0.125 286.0);
}

Design token (W3C DTCG)

{
  "color": {
    "darkslateblue": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2824, 0.2392, 0.5451],
        "hex": "#483d8b"
      },
      "$description": "CSS named color darkslateblue"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let darkslateblue = Color(.sRGB, red: 0.282, green: 0.239, blue: 0.545, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Darkslateblue = Color(0xFF483D8B)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #483D8B in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.