#3D1E71#3D1E71

#3D1E71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.134 H 295.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3D1E71
RGBrgb(61, 30, 113)
HSLhsl(262, 58%, 28%)
HSVhsv(262, 73%, 44%)
CMYKcmyk(46%, 73.5%, 0%, 55.7%)
CIE-LABlab(20.49, 34.56, -42.49)
CIE-LCHlch(20.49, 54.77, 309.12°)
OKLaboklab(32.98% 0.0569 -0.1216)
OKLCHoklch(32.98% 0.134 295.1)
XYZxyz(5.3686, 3.1128, 15.9375)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1E71 #52711E
analogous
#1E2871 #3D1E71 #661E71
triadic
#3D1E71 #713D1E #1E713D
tetradic
#3D1E71 #711E28 #52711E #1E7166
square
#3D1E71 #711E28 #52711E #1E7166
split-complementary
#3D1E71 #71661E #28711E
monochromatic
#0D0618 #231141 #3D1E71 #572BA1 #733ECC

Accessibility & contrast

On white

12.94
#3D1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1E71
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1E71#FFFFFF#000000##FFFFFF
##3D1E711.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#2F3345
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d1e71;
/* rgb */ color: rgb(61, 30, 113);
/* oklch */ color: oklch(33.0% 0.134 295.1);
Tailwind
colors: {
  custom: {
    50: '#785d9b',
    500: '#3d1e71',
    950: '#000000',
  },
}
SCSS
$custom: #3d1e71;
$custom-light: #785d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1e71",
  "rgb": {
    "r": 61,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 262.41,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.13423,
    "h": 295.1
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#3D1E71
secondary
#81A546
accent
#E147A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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