#3D2086#3D2086

#3D2086 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 288.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3D2086
RGBrgb(61, 32, 134)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(54.5%, 76.1%, 0%, 47.5%)
CIE-LABlab(22.81, 39.69, -52.05)
CIE-LCHlch(22.81, 65.45, 307.32°)
OKLaboklab(35.23% 0.0501 -0.1496)
OKLCHoklch(35.23% 0.158 288.5)
XYZxyz(6.7428, 3.7460, 22.9174)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2086 #698620
analogous
#203686 #3D2086 #702086
triadic
#3D2086 #863D20 #20863D
tetradic
#3D2086 #862036 #698620 #208670
square
#3D2086 #862036 #698620 #208670
split-complementary
#3D2086 #867020 #368620
monochromatic
#100823 #271455 #3D2086 #532CB7 #734CD4

Accessibility & contrast

On white

12.01
#3D2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2086
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2086#FFFFFF#000000##FFFFFF
##3D20861.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#213C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d2086;
/* rgb */ color: rgb(61, 32, 134);
/* oklch */ color: oklch(35.2% 0.158 288.5);
Tailwind
colors: {
  custom: {
    50: '#7b5faa',
    500: '#3d2086',
    950: '#000000',
  },
}
SCSS
$custom: #3d2086;
$custom-light: #7b5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2086",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 257.059,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.15779,
    "h": 288.5
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#3D2086
secondary
#98B74B
accent
#E543B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D2086

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

Preview Lab → · Contrast checker → · Palette generator →

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