#3D1E85#3D1E85

#3D1E85 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.159 H 289.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3D1E85
RGBrgb(61, 30, 133)
HSLhsl(258, 63%, 32%)
HSVhsv(258, 77%, 52%)
CMYKcmyk(54.1%, 77.4%, 0%, 47.8%)
CIE-LABlab(22.35, 40.42, -52.18)
CIE-LCHlch(22.35, 66.01, 307.77°)
OKLaboklab(34.87% 0.052 -0.15)
OKLCHoklch(34.87% 0.159 289.1)
XYZxyz(6.6211, 3.6138, 22.5344)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E85 #66851E
analogous
#1E3385 #3D1E85 #711E85
triadic
#3D1E85 #853D1E #1E853D
tetradic
#3D1E85 #851E33 #66851E #1E8571
square
#3D1E85 #851E33 #66851E #1E8571
split-complementary
#3D1E85 #85711E #33851E
monochromatic
#0F0721 #261353 #3D1E85 #5429B7 #7248D6

Accessibility & contrast

On white

12.19
#3D1E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D1E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E85
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E85#FFFFFF#000000##FFFFFF
##3D1E851.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d1e85;
/* rgb */ color: rgb(61, 30, 133);
/* oklch */ color: oklch(34.9% 0.159 289.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ea9',
    500: '#3d1e85',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e85;
$custom-light: #7b5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e85",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 258.058,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.15877,
    "h": 289.1
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#3D1E85
secondary
#96B847
accent
#E642B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1E85

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

Preview Lab → · Contrast checker → · Palette generator →

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