#3D1D7D#3D1D7D

#3D1D7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.150 H 291.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3D1D7D
RGBrgb(61, 29, 125)
HSLhsl(260, 62%, 30%)
HSVhsv(260, 77%, 49%)
CMYKcmyk(51.2%, 76.8%, 0%, 51%)
CIE-LABlab(21.40, 38.59, -48.69)
CIE-LCHlch(21.40, 62.13, 308.40°)
OKLaboklab(33.97% 0.0551 -0.1398)
OKLCHoklch(33.97% 0.15 291.5)
XYZxyz(6.0645, 3.3513, 19.7254)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D7D #5D7D1D
analogous
#1D2D7D #3D1D7D #6D1D7D
triadic
#3D1D7D #7D3D1D #1D7D3D
tetradic
#3D1D7D #7D1D2D #5D7D1D #1D7D6D
square
#3D1D7D #7D1D2D #5D7D1D #1D7D6D
split-complementary
#3D1D7D #7D6D1D #2D7D1D
monochromatic
#0D061A #25114B #3D1D7D #5529AF #7241D3

Accessibility & contrast

On white

12.57
#3D1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3D1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D7D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D7D#FFFFFF#000000##FFFFFF
##3D1D7D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#28374B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1d7d;
/* rgb */ color: rgb(61, 29, 125);
/* oklch */ color: oklch(34.0% 0.150 291.5);
Tailwind
colors: {
  custom: {
    50: '#7a5da4',
    500: '#3d1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d7d;
$custom-light: #7a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d7d",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 260,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33967,
    "c": 0.15021,
    "h": 291.5
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#3D1D7D
secondary
#8DB145
accent
#E542AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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