#3D2871#3D2871

#3D2871 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.5% C 0.120 H 292.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#3D2871
RGBrgb(61, 40, 113)
HSLhsl(257, 48%, 30%)
HSVhsv(257, 65%, 44%)
CMYKcmyk(46%, 64.6%, 0%, 55.7%)
CIE-LABlab(22.66, 28.65, -38.96)
CIE-LCHlch(22.66, 48.36, 306.33°)
OKLaboklab(34.55% 0.0454 -0.1112)
OKLCHoklch(34.55% 0.12 292.2)
XYZxyz(5.6631, 3.7018, 16.0357)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2871 #5C7128
analogous
#283871 #3D2871 #612871
triadic
#3D2871 #713D28 #28713D
tetradic
#3D2871 #712838 #5C7128 #287161
square
#3D2871 #712838 #5C7128 #287161
split-complementary
#3D2871 #716128 #387128
monochromatic
#0C0817 #251844 #3D2871 #55389E #7252C2

Accessibility & contrast

On white

12.07
#3D2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2871
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2871#FFFFFF#000000##FFFFFF
##3D28711.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#2E3948
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d2871;
/* rgb */ color: rgb(61, 40, 113);
/* oklch */ color: oklch(34.5% 0.120 292.2);
Tailwind
colors: {
  custom: {
    50: '#77639a',
    500: '#3d2871',
    950: '#000000',
  },
}
SCSS
$custom: #3d2871;
$custom-light: #77639a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2871",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 257.26,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.34547,
    "c": 0.12012,
    "h": 292.2
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#3D2871
secondary
#8CA352
accent
#D750B1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3D2871

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

Preview Lab → · Contrast checker → · Palette generator →

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