#3D1D71#3D1D71

#3D1D71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.136 H 295.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3D1D71
RGBrgb(61, 29, 113)
HSLhsl(263, 59%, 28%)
HSVhsv(263, 74%, 44%)
CMYKcmyk(46%, 74.3%, 0%, 55.7%)
CIE-LABlab(20.29, 35.10, -42.81)
CIE-LCHlch(20.29, 55.36, 309.35°)
OKLaboklab(32.85% 0.058 -0.1225)
OKLCHoklch(32.85% 0.136 295.3)
XYZxyz(5.3437, 3.0630, 15.9292)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D71 #51711D
analogous
#1D2771 #3D1D71 #671D71
triadic
#3D1D71 #713D1D #1D713D
tetradic
#3D1D71 #711D27 #51711D #1D7167
square
#3D1D71 #711D27 #51711D #1D7167
split-complementary
#3D1D71 #71671D #27711D
monochromatic
#0D0618 #231140 #3D1D71 #5729A2 #733CCD

Accessibility & contrast

On white

13.02
#3D1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D71
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D71#FFFFFF#000000##FFFFFF
##3D1D711.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#2F3245
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1d71;
/* rgb */ color: rgb(61, 29, 113);
/* oklch */ color: oklch(32.8% 0.136 295.3);
Tailwind
colors: {
  custom: {
    50: '#785c9b',
    500: '#3d1d71',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d71;
$custom-light: #785c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d71",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 262.857,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32845,
    "c": 0.13552,
    "h": 295.3
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#3D1D71
secondary
#80A544
accent
#E245A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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