#3D1783#3D1783

#3D1783 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.163 H 290.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#3D1783
RGBrgb(61, 23, 131)
HSLhsl(261, 70%, 30%)
HSVhsv(261, 82%, 51%)
CMYKcmyk(53.4%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.99, 43.18, -53.15)
CIE-LCHlch(20.99, 68.48, 309.09°)
OKLaboklab(33.86% 0.0581 -0.1528)
OKLCHoklch(33.86% 0.163 290.8)
XYZxyz(6.3264, 3.2433, 21.7610)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1783 #5D8317
analogous
#172783 #3D1783 #731783
triadic
#3D1783 #833D17 #17833D
tetradic
#3D1783 #831727 #5D8317 #178373
square
#3D1783 #831727 #5D8317 #178373
split-complementary
#3D1783 #837317 #278317
monochromatic
#0D051B #250E4F #3D1783 #5520B7 #7238DC

Accessibility & contrast

On white

12.74
#3D1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1783
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1783#FFFFFF#000000##FFFFFF
##3D17831.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#24374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1783;
/* rgb */ color: rgb(61, 23, 131);
/* oklch */ color: oklch(33.9% 0.163 290.8);
Tailwind
colors: {
  custom: {
    50: '#7b5aa8',
    500: '#3d1783',
    950: '#000000',
  },
}
SCSS
$custom: #3d1783;
$custom-light: #7b5aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1783",
  "rgb": {
    "r": 61,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 261.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33864,
    "c": 0.16344,
    "h": 290.8
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#3D1783
secondary
#8DB73F
accent
#ED3BAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1783

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

Preview Lab → · Contrast checker → · Palette generator →

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