#3D1D8D#3D1D8D

#3D1D8D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.169 H 287.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#3D1D8D
RGBrgb(61, 29, 141)
HSLhsl(257, 66%, 33%)
HSVhsv(257, 79%, 55%)
CMYKcmyk(56.7%, 79.4%, 0%, 44.7%)
CIE-LABlab(22.98, 43.26, -56.16)
CIE-LCHlch(22.98, 70.89, 307.61°)
OKLaboklab(35.55% 0.0505 -0.1616)
OKLCHoklch(35.55% 0.169 287.3)
XYZxyz(7.1701, 3.7935, 25.5485)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D8D #6D8D1D
analogous
#1D358D #3D1D8D #751D8D
triadic
#3D1D8D #8D3D1D #1D8D3D
tetradic
#3D1D8D #8D1D35 #6D8D1D #1D8D75
square
#3D1D8D #8D1D35 #6D8D1D #1D8D75
split-complementary
#3D1D8D #8D751D #358D1D
monochromatic
#110827 #27135A #3D1D8D #5327C0 #734BDA

Accessibility & contrast

On white

11.94
#3D1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3D1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D8D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D8D#FFFFFF#000000##FFFFFF
##3D1D8D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#1A3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3d1d8d;
/* rgb */ color: rgb(61, 29, 141);
/* oklch */ color: oklch(35.6% 0.169 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c5daf',
    500: '#3d1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d8d;
$custom-light: #7c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d8d",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 257.143,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35552,
    "c": 0.16933,
    "h": 287.3
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#3D1D8D
secondary
#9BBC4A
accent
#E93FB8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1D8D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3D1D8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva