#3D1D86#3D1D86

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

Color values

HEX#3D1D86
RGBrgb(61, 29, 134)
HSLhsl(258, 64%, 32%)
HSVhsv(258, 78%, 53%)
CMYKcmyk(54.5%, 78.4%, 0%, 47.5%)
CIE-LABlab(22.27, 41.22, -52.94)
CIE-LCHlch(22.27, 67.09, 307.91°)
OKLaboklab(34.85% 0.0526 -0.1522)
OKLCHoklch(34.85% 0.161 289.1)
XYZxyz(6.6657, 3.5917, 22.8917)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1D86 #66861D
analogous
#1D3186 #3D1D86 #721D86
triadic
#3D1D86 #863D1D #1D863D
tetradic
#3D1D86 #861D31 #66861D #1D8672
square
#3D1D86 #861D31 #66861D #1D8672
split-complementary
#3D1D86 #86721D #31861D
monochromatic
#0F0721 #261254 #3D1D86 #5428B8 #7246D7

Accessibility & contrast

On white

12.22
#3D1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D1D86
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1D86#FFFFFF#000000##FFFFFF
##3D1D861.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#213A50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1d86;
/* rgb */ color: rgb(61, 29, 134);
/* oklch */ color: oklch(34.8% 0.161 289.1);
Tailwind
colors: {
  custom: {
    50: '#7b5daa',
    500: '#3d1d86',
    950: '#000000',
  },
}
SCSS
$custom: #3d1d86;
$custom-light: #7b5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1d86",
  "rgb": {
    "r": 61,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 258.286,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34848,
    "c": 0.16103,
    "h": 289.1
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#3D1D86
secondary
#96B946
accent
#E740B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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