#3D219D#3D219D

#3D219D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.184 H 283.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#3D219D
RGBrgb(61, 33, 157)
HSLhsl(254, 65%, 37%)
HSVhsv(254, 79%, 62%)
CMYKcmyk(61.1%, 79%, 0%, 38.4%)
CIE-LABlab(25.30, 46.03, -62.19)
CIE-LCHlch(25.30, 77.37, 306.50°)
OKLaboklab(37.67% 0.0429 -0.1793)
OKLCHoklch(37.67% 0.184 283.5)
XYZxyz(8.5522, 4.5136, 32.3123)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D219D #819D21
analogous
#21439D #3D219D #7B219D
triadic
#3D219D #9D3D21 #219D3D
tetradic
#3D219D #9D2143 #819D21 #219D7B
square
#3D219D #9D2143 #819D21 #219D7B
split-complementary
#3D219D #9D7B21 #439D21
monochromatic
#160C38 #29166A #3D219D #512CD0 #795CDD

Accessibility & contrast

On white

11.04
#3D219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3D219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D219D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D219D#FFFFFF#000000##FFFFFF
##3D219D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d219d;
/* rgb */ color: rgb(61, 33, 157);
/* oklch */ color: oklch(37.7% 0.184 283.5);
Tailwind
colors: {
  custom: {
    50: '#7f61bb',
    500: '#3d219d',
    950: '#000000',
  },
}
SCSS
$custom: #3d219d;
$custom-light: #7f61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d219d",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 253.548,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.18437,
    "h": 283.5
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#3D219D
secondary
#A9C159
accent
#E840C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D219D

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

Preview Lab → · Contrast checker → · Palette generator →

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