#3D1C87#3D1C87

#3D1C87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.163 H 289.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3D1C87
RGBrgb(61, 28, 135)
HSLhsl(259, 66%, 32%)
HSVhsv(259, 79%, 53%)
CMYKcmyk(54.8%, 79.3%, 0%, 47.1%)
CIE-LABlab(22.20, 42.00, -53.68)
CIE-LCHlch(22.20, 68.16, 308.04°)
OKLaboklab(34.83% 0.0531 -0.1544)
OKLCHoklch(34.83% 0.163 289)
XYZxyz(6.7116, 3.5716, 23.2527)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1C87 #66871C
analogous
#1C3087 #3D1C87 #731C87
triadic
#3D1C87 #873D1C #1C873D
tetradic
#3D1C87 #871C30 #66871C #1C8773
square
#3D1C87 #871C30 #66871C #1C8773
split-complementary
#3D1C87 #87731C #30871C
monochromatic
#0F0722 #261154 #3D1C87 #5427BA #7245D8

Accessibility & contrast

On white

12.25
#3D1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1C87
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1C87#FFFFFF#000000##FFFFFF
##3D1C871.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#203A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d1c87;
/* rgb */ color: rgb(61, 28, 135);
/* oklch */ color: oklch(34.8% 0.163 289.0);
Tailwind
colors: {
  custom: {
    50: '#7b5dab',
    500: '#3d1c87',
    950: '#000000',
  },
}
SCSS
$custom: #3d1c87;
$custom-light: #7b5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1c87",
  "rgb": {
    "r": 61,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 258.505,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34828,
    "c": 0.16324,
    "h": 289
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#3D1C87
secondary
#96BA45
accent
#E93FB4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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