#3D1B96#3D1B96

#3D1B96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.182 H 285.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3D1B96
RGBrgb(61, 27, 150)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 82%, 59%)
CMYKcmyk(59.3%, 82%, 0%, 41.2%)
CIE-LABlab(23.60, 46.79, -60.71)
CIE-LCHlch(23.60, 76.65, 307.62°)
OKLaboklab(36.27% 0.0489 -0.1749)
OKLCHoklch(36.27% 0.182 285.6)
XYZxyz(7.8198, 3.9775, 29.2039)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1B96 #74961B
analogous
#1B3796 #3D1B96 #7A1B96
triadic
#3D1B96 #963D1B #1B963D
tetradic
#3D1B96 #961B37 #74961B #1B967A
square
#3D1B96 #961B37 #74961B #1B967A
split-complementary
#3D1B96 #967A1B #37961B
monochromatic
#13082E #281262 #3D1B96 #5224CA #754DDF

Accessibility & contrast

On white

11.70
#3D1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1B96
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1B96#FFFFFF#000000##FFFFFF
##3D1B961.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#0B4059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1b96;
/* rgb */ color: rgb(61, 27, 150);
/* oklch */ color: oklch(36.3% 0.182 285.6);
Tailwind
colors: {
  custom: {
    50: '#7e5db6',
    500: '#3d1b96',
    950: '#000000',
  },
}
SCSS
$custom: #3d1b96;
$custom-light: #7e5db6;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1b96",
  "rgb": {
    "r": 61,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 256.585,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36265,
    "c": 0.18161,
    "h": 285.6
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#3D1B96
secondary
#A1C14C
accent
#EC3BBB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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