#3D1A87#3D1A87

#3D1A87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.165 H 289.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3D1A87
RGBrgb(61, 26, 135)
HSLhsl(259, 68%, 32%)
HSVhsv(259, 81%, 53%)
CMYKcmyk(54.8%, 80.7%, 0%, 47.1%)
CIE-LABlab(21.87, 42.96, -54.22)
CIE-LCHlch(21.87, 69.18, 308.39°)
OKLaboklab(34.6% 0.0546 -0.1559)
OKLCHoklch(34.6% 0.165 289.3)
XYZxyz(6.6658, 3.4798, 23.2374)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1A87 #64871A
analogous
#1A2E87 #3D1A87 #741A87
triadic
#3D1A87 #873D1A #1A873D
tetradic
#3D1A87 #871A2E #64871A #1A8774
square
#3D1A87 #871A2E #64871A #1A8774
split-complementary
#3D1A87 #87741A #2E871A
monochromatic
#0F0620 #261054 #3D1A87 #5424BA #7241DA

Accessibility & contrast

On white

12.38
#3D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3D1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1A87
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1A87#FFFFFF#000000##FFFFFF
##3D1A871.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#203A50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d1a87;
/* rgb */ color: rgb(61, 26, 135);
/* oklch */ color: oklch(34.6% 0.165 289.3);
Tailwind
colors: {
  custom: {
    50: '#7c5cab',
    500: '#3d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #3d1a87;
$custom-light: #7c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1a87",
  "rgb": {
    "r": 61,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 259.266,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34598,
    "c": 0.16522,
    "h": 289.3
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#3D1A87
secondary
#94BA42
accent
#EB3DB3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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