#3D1B79#3D1B79

#3D1B79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 293.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#3D1B79
RGBrgb(61, 27, 121)
HSLhsl(262, 64%, 29%)
HSVhsv(262, 78%, 47%)
CMYKcmyk(49.6%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.66, 38.46, -47.35)
CIE-LCHlch(20.66, 61.00, 309.08°)
OKLaboklab(33.33% 0.058 -0.1358)
OKLCHoklch(33.33% 0.148 293.1)
XYZxyz(5.7666, 3.1563, 18.3908)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B79 #57791B
analogous
#1B2879 #3D1B79 #6C1B79
triadic
#3D1B79 #793D1B #1B793D
tetradic
#3D1B79 #791B28 #57791B #1B796C
square
#3D1B79 #791B28 #57791B #1B796C
split-complementary
#3D1B79 #796C1B #28791B
monochromatic
#0D0619 #241047 #3D1B79 #5626AB #723BD3

Accessibility & contrast

On white

12.87
#3D1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B79
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B79#FFFFFF#000000##FFFFFF
##3D1B791.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#2A3449
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d1b79;
/* rgb */ color: rgb(61, 27, 121);
/* oklch */ color: oklch(33.3% 0.148 293.1);
Tailwind
colors: {
  custom: {
    50: '#795ba1',
    500: '#3d1b79',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b79;
$custom-light: #795ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b79",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 261.702,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.14767,
    "h": 293.1
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#3D1B79
secondary
#87AD43
accent
#E741AB
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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