#3D219E#3D219E

#3D219E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.186 H 283.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3D219E
RGBrgb(61, 33, 158)
HSLhsl(253, 65%, 37%)
HSVhsv(253, 79%, 62%)
CMYKcmyk(61.4%, 79.1%, 0%, 38%)
CIE-LABlab(25.41, 46.33, -62.63)
CIE-LCHlch(25.41, 77.90, 306.49°)
OKLaboklab(37.77% 0.0426 -0.1806)
OKLCHoklch(37.77% 0.186 283.3)
XYZxyz(8.6380, 4.5478, 32.7638)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D219E #829E21
analogous
#21449E #3D219E #7C219E
triadic
#3D219E #9E3D21 #219E3D
tetradic
#3D219E #9E2144 #829E21 #219E7C
square
#3D219E #9E2144 #829E21 #219E7C
split-complementary
#3D219E #9E7C21 #449E21
monochromatic
#160C39 #29166B #3D219E #512CD1 #795CDD

Accessibility & contrast

On white

11.00
#3D219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3D219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D219E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D219E#FFFFFF#000000##FFFFFF
##3D219E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d219e;
/* rgb */ color: rgb(61, 33, 158);
/* oklch */ color: oklch(37.8% 0.186 283.3);
Tailwind
colors: {
  custom: {
    50: '#7f61bc',
    500: '#3d219e',
    950: '#000000',
  },
}
SCSS
$custom: #3d219e;
$custom-light: #7f61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d219e",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 253.44,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.18555,
    "h": 283.3
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#3D219E
secondary
#AAC159
accent
#E83FC3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D219E

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

Preview Lab → · Contrast checker → · Palette generator →

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