#3D1D9D#3D1D9D

#3D1D9D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.188 H 284.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#3D1D9D
RGBrgb(61, 29, 157)
HSLhsl(255, 69%, 36%)
HSVhsv(255, 82%, 62%)
CMYKcmyk(61.1%, 81.5%, 0%, 38.4%)
CIE-LABlab(24.65, 47.90, -63.26)
CIE-LCHlch(24.65, 79.35, 307.13°)
OKLaboklab(37.22% 0.0453 -0.1824)
OKLCHoklch(37.22% 0.188 284)
XYZxyz(8.4478, 4.3046, 32.2775)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D9D #7D9D1D
analogous
#1D3D9D #3D1D9D #7D1D9D
triadic
#3D1D9D #9D3D1D #1D9D3D
tetradic
#3D1D9D #9D1D3D #7D9D1D #1D9D7D
square
#3D1D9D #9D1D3D #7D9D1D #1D9D7D
split-complementary
#3D1D9D #9D7D1D #3D9D1D
monochromatic
#150A36 #291369 #3D1D9D #5127D1 #7855E0

Accessibility & contrast

On white

11.28
#3D1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3D1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D9D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D9D#FFFFFF#000000##FFFFFF
##3D1D9D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d1d9d;
/* rgb */ color: rgb(61, 29, 157);
/* oklch */ color: oklch(37.2% 0.188 284.0);
Tailwind
colors: {
  custom: {
    50: '#7f5ebb',
    500: '#3d1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d9d;
$custom-light: #7f5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d9d",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 255,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.18792,
    "h": 284
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#3D1D9D
secondary
#A7C353
accent
#EC3CC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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