#3D1D7F#3D1D7F

#3D1D7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.153 H 290.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#3D1D7F
RGBrgb(61, 29, 127)
HSLhsl(260, 63%, 31%)
HSVhsv(260, 77%, 50%)
CMYKcmyk(52%, 77.2%, 0%, 50.2%)
CIE-LABlab(21.59, 39.18, -49.64)
CIE-LCHlch(21.59, 63.24, 308.28°)
OKLaboklab(34.16% 0.0545 -0.1426)
OKLCHoklch(34.16% 0.153 290.9)
XYZxyz(6.1935, 3.4029, 20.4050)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D7F #5F7F1D
analogous
#1D2E7F #3D1D7F #6E1D7F
triadic
#3D1D7F #7F3D1D #1D7F3D
tetradic
#3D1D7F #7F1D2E #5F7F1D #1D7F6E
square
#3D1D7F #7F1D2E #5F7F1D #1D7F6E
split-complementary
#3D1D7F #7F6E1D #2E7F1D
monochromatic
#0D061B #25124D #3D1D7F #5528B1 #7242D4

Accessibility & contrast

On white

12.50
#3D1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3D1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D7F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D7F#FFFFFF#000000##FFFFFF
##3D1D7F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#26384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1d7f;
/* rgb */ color: rgb(61, 29, 127);
/* oklch */ color: oklch(34.2% 0.153 290.9);
Tailwind
colors: {
  custom: {
    50: '#7a5da5',
    500: '#3d1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d7f;
$custom-light: #7a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d7f",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 259.592,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.15264,
    "h": 290.9
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#3D1D7F
secondary
#8FB245
accent
#E642B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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