#3D1785#3D1785

#3D1785 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.166 H 290.3°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#3D1785
RGBrgb(61, 23, 133)
HSLhsl(261, 71%, 31%)
HSVhsv(261, 83%, 52%)
CMYKcmyk(54.1%, 82.7%, 0%, 47.8%)
CIE-LABlab(21.20, 43.74, -54.07)
CIE-LCHlch(21.20, 69.55, 308.97°)
OKLaboklab(34.07% 0.0574 -0.1555)
OKLCHoklch(34.07% 0.166 290.3)
XYZxyz(6.4633, 3.2981, 22.4818)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1785 #5F8517
analogous
#172885 #3D1785 #741785
triadic
#3D1785 #853D17 #17853D
tetradic
#3D1785 #851728 #5F8517 #178574
square
#3D1785 #851728 #5F8517 #178574
split-complementary
#3D1785 #857417 #288517
monochromatic
#0D051D #250E51 #3D1785 #5520B9 #723ADD

Accessibility & contrast

On white

12.65
#3D1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3D1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1785
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1785#FFFFFF#000000##FFFFFF
##3D17851.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#22384F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d1785;
/* rgb */ color: rgb(61, 23, 133);
/* oklch */ color: oklch(34.1% 0.166 290.3);
Tailwind
colors: {
  custom: {
    50: '#7b5aaa',
    500: '#3d1785',
    950: '#000000',
  },
}
SCSS
$custom: #3d1785;
$custom-light: #7b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1785",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 260.727,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3407,
    "c": 0.16571,
    "h": 290.3
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#3D1785
secondary
#8FB93F
accent
#ED3BB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1785

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

Preview Lab → · Contrast checker → · Palette generator →

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