#3D1871#3D1871

#3D1871 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.142 H 296.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#3D1871
RGBrgb(61, 24, 113)
HSLhsl(265, 65%, 27%)
HSVhsv(265, 79%, 44%)
CMYKcmyk(46%, 78.8%, 0%, 55.7%)
CIE-LABlab(19.38, 37.68, -44.30)
CIE-LCHlch(19.38, 58.16, 310.39°)
OKLaboklab(32.2% 0.0629 -0.1268)
OKLCHoklch(32.2% 0.142 296.4)
XYZxyz(5.2309, 2.8375, 15.8917)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1871 #4C7118
analogous
#181F71 #3D1871 #6A1871
triadic
#3D1871 #713D18 #18713D
tetradic
#3D1871 #71181F #4C7118 #18716A
square
#3D1871 #71181F #4C7118 #18716A
split-complementary
#3D1871 #716A18 #1F7118
monochromatic
#0E0519 #220D3F #3D1871 #5823A3 #7430D3

Accessibility & contrast

On white

13.40
#3D1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3D1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1871
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1871#FFFFFF#000000##FFFFFF
##3D18711.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#2F3043
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3d1871;
/* rgb */ color: rgb(61, 24, 113);
/* oklch */ color: oklch(32.2% 0.142 296.4);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3d1871',
    950: '#000000',
  },
}
SCSS
$custom: #3d1871;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1871",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 264.944,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.322,
    "c": 0.14159,
    "h": 296.4
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#3D1871
secondary
#7BA63E
accent
#E840A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D1871

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

Preview Lab → · Contrast checker → · Palette generator →

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