#3D1986#3D1986

#3D1986 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.165 H 289.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#3D1986
RGBrgb(61, 25, 134)
HSLhsl(260, 69%, 31%)
HSVhsv(260, 81%, 53%)
CMYKcmyk(54.5%, 81.3%, 0%, 47.5%)
CIE-LABlab(21.61, 43.13, -54.03)
CIE-LCHlch(21.61, 69.13, 308.60°)
OKLaboklab(34.39% 0.0556 -0.1554)
OKLCHoklch(34.39% 0.165 289.7)
XYZxyz(6.5739, 3.4083, 22.8611)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1986 #628619
analogous
#192B86 #3D1986 #731986
triadic
#3D1986 #863D19 #19863D
tetradic
#3D1986 #86192B #628619 #198673
square
#3D1986 #86192B #628619 #198673
split-complementary
#3D1986 #867319 #2B8619
monochromatic
#0E061F #260F52 #3D1986 #5423BA #723EDB

Accessibility & contrast

On white

12.49
#3D1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1986
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1986#FFFFFF#000000##FFFFFF
##3D19861.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#213950
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1986;
/* rgb */ color: rgb(61, 25, 134);
/* oklch */ color: oklch(34.4% 0.165 289.7);
Tailwind
colors: {
  custom: {
    50: '#7c5baa',
    500: '#3d1986',
    950: '#000000',
  },
}
SCSS
$custom: #3d1986;
$custom-light: #7c5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1986",
  "rgb": {
    "r": 61,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 259.817,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.16501,
    "h": 289.7
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#3D1986
secondary
#92BA41
accent
#EB3CB2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1986

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

Preview Lab → · Contrast checker → · Palette generator →

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