#3D1D85#3D1D85

#3D1D85 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.160 H 289.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3D1D85
RGBrgb(61, 29, 133)
HSLhsl(258, 64%, 32%)
HSVhsv(258, 78%, 52%)
CMYKcmyk(54.1%, 78.2%, 0%, 47.8%)
CIE-LABlab(22.17, 40.93, -52.47)
CIE-LCHlch(22.17, 66.55, 307.96°)
OKLaboklab(34.75% 0.0529 -0.1508)
OKLCHoklch(34.75% 0.16 289.3)
XYZxyz(6.5962, 3.5640, 22.5261)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D85 #65851D
analogous
#1D3185 #3D1D85 #711D85
triadic
#3D1D85 #853D1D #1D853D
tetradic
#3D1D85 #851D31 #65851D #1D8571
square
#3D1D85 #851D31 #65851D #1D8571
split-complementary
#3D1D85 #85711D #31851D
monochromatic
#0F0721 #261253 #3D1D85 #5428B7 #7246D7

Accessibility & contrast

On white

12.26
#3D1D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D1D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1D85
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D85#FFFFFF#000000##FFFFFF
##3D1D851.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#223A50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1d85;
/* rgb */ color: rgb(61, 29, 133);
/* oklch */ color: oklch(34.7% 0.160 289.3);
Tailwind
colors: {
  custom: {
    50: '#7b5da9',
    500: '#3d1d85',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d85;
$custom-light: #7b5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d85",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 258.462,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34748,
    "c": 0.15983,
    "h": 289.3
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#3D1D85
secondary
#95B846
accent
#E741B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D85

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

Preview Lab → · Contrast checker → · Palette generator →

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