#3D2879#3D2879

#3D2879 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.131 H 289.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#3D2879
RGBrgb(61, 40, 121)
HSLhsl(256, 50%, 32%)
HSVhsv(256, 67%, 47%)
CMYKcmyk(49.6%, 66.9%, 0%, 52.5%)
CIE-LABlab(23.30, 31.14, -43.03)
CIE-LCHlch(23.30, 53.12, 305.89°)
OKLaboklab(35.22% 0.0446 -0.1232)
OKLCHoklch(35.22% 0.131 289.9)
XYZxyz(6.1335, 3.8899, 18.5131)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D2879 #647928
analogous
#283B79 #3D2879 #662879
triadic
#3D2879 #793D28 #28793D
tetradic
#3D2879 #79283B #647928 #287966
square
#3D2879 #79283B #647928 #287966
split-complementary
#3D2879 #796628 #3B7928
monochromatic
#0F0A1D #26194B #3D2879 #5437A7 #7255C7

Accessibility & contrast

On white

11.81
#3D2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D2879
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D2879#FFFFFF#000000##FFFFFF
##3D28791.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#2A3B4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d2879;
/* rgb */ color: rgb(61, 40, 121);
/* oklch */ color: oklch(35.2% 0.131 289.9);
Tailwind
colors: {
  custom: {
    50: '#7863a0',
    500: '#3d2879',
    950: '#000000',
  },
}
SCSS
$custom: #3d2879;
$custom-light: #7863a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d2879",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 255.556,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35218,
    "c": 0.13103,
    "h": 289.9
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#3D2879
secondary
#94AB52
accent
#DA4EB6
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050F
muted
#7B797E

Preview Lab

Preview with #3D2879

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

Preview Lab → · Contrast checker → · Palette generator →

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