#3D1E87#3D1E87

#3D1E87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.161 H 288.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3D1E87
RGBrgb(61, 30, 135)
HSLhsl(258, 64%, 32%)
HSVhsv(258, 78%, 53%)
CMYKcmyk(54.8%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.55, 41.01, -53.11)
CIE-LCHlch(22.55, 67.10, 307.67°)
OKLaboklab(35.07% 0.0515 -0.1527)
OKLCHoklch(35.07% 0.161 288.6)
XYZxyz(6.7606, 3.6696, 23.2690)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E87 #68871E
analogous
#1E3487 #3D1E87 #711E87
triadic
#3D1E87 #873D1E #1E873D
tetradic
#3D1E87 #871E34 #68871E #1E8771
square
#3D1E87 #871E34 #68871E #1E8771
split-complementary
#3D1E87 #87711E #34871E
monochromatic
#100823 #261355 #3D1E87 #5429B9 #7349D7

Accessibility & contrast

On white

12.11
#3D1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E87
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E87#FFFFFF#000000##FFFFFF
##3D1E871.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#203B51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d1e87;
/* rgb */ color: rgb(61, 30, 135);
/* oklch */ color: oklch(35.1% 0.161 288.6);
Tailwind
colors: {
  custom: {
    50: '#7b5eab',
    500: '#3d1e87',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e87;
$custom-light: #7b5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e87",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 257.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3507,
    "c": 0.16117,
    "h": 288.6
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#3D1E87
secondary
#97B948
accent
#E741B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3D1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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