#3D1E97#3D1E97

#3D1E97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.180 H 285.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3D1E97
RGBrgb(61, 30, 151)
HSLhsl(255, 67%, 35%)
HSVhsv(255, 80%, 59%)
CMYKcmyk(59.6%, 80.1%, 0%, 40.8%)
CIE-LABlab(24.18, 45.70, -60.37)
CIE-LCHlch(24.18, 75.72, 307.13°)
OKLaboklab(36.7% 0.0467 -0.1739)
OKLCHoklch(36.7% 0.18 285)
XYZxyz(7.9730, 4.1545, 29.6539)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E97 #78971E
analogous
#1E3B97 #3D1E97 #791E97
triadic
#3D1E97 #973D1E #1E973D
tetradic
#3D1E97 #971E3B #78971E #1E9779
square
#3D1E97 #971E3B #78971E #1E9779
split-complementary
#3D1E97 #97791E #3B971E
monochromatic
#140A31 #281464 #3D1E97 #5228CA #7653DD

Accessibility & contrast

On white

11.47
#3D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E97
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E97#FFFFFF#000000##FFFFFF
##3D1E971.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#07425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d1e97;
/* rgb */ color: rgb(61, 30, 151);
/* oklch */ color: oklch(36.7% 0.180 285.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fb7',
    500: '#3d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e97;
$custom-light: #7e5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e97",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 255.372,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36698,
    "c": 0.1801,
    "h": 285
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#3D1E97
secondary
#A3C051
accent
#EA3EBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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