#3D1A97#3D1A97

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

Color values

HEX#3D1A97
RGBrgb(61, 26, 151)
HSLhsl(257, 71%, 35%)
HSVhsv(257, 83%, 59%)
CMYKcmyk(59.6%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.55, 47.51, -61.40)
CIE-LCHlch(23.55, 77.63, 307.73°)
OKLaboklab(36.27% 0.0491 -0.1769)
OKLCHoklch(36.27% 0.184 285.5)
XYZxyz(7.8781, 3.9648, 29.6223)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A97 #74971A
analogous
#1A3697 #3D1A97 #7C1A97
triadic
#3D1A97 #973D1A #1A973D
tetradic
#3D1A97 #971A36 #74971A #1A977C
square
#3D1A97 #971A36 #74971A #1A977C
split-complementary
#3D1A97 #977C1A #36971A
monochromatic
#13082F #281163 #3D1A97 #5223CB #754BE0

Accessibility & contrast

On white

11.71
#3D1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3D1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A97
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A97#FFFFFF#000000##FFFFFF
##3D1A971.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#08405A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d1a97;
/* rgb */ color: rgb(61, 26, 151);
/* oklch */ color: oklch(36.3% 0.184 285.5);
Tailwind
colors: {
  custom: {
    50: '#7e5db7',
    500: '#3d1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a97;
$custom-light: #7e5db7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a97",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 256.8,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36268,
    "c": 0.18358,
    "h": 285.5
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#3D1A97
secondary
#A1C24B
accent
#ED3ABB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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