#3D218C#3D218C

#3D218C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.164 H 286.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3D218C
RGBrgb(61, 33, 140)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(56.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(23.58, 40.95, -54.54)
CIE-LCHlch(23.58, 68.20, 306.90°)
OKLaboklab(35.95% 0.0477 -0.1569)
OKLCHoklch(35.95% 0.164 286.9)
XYZxyz(7.2005, 3.9729, 25.1933)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218C #708C21
analogous
#213B8C #3D218C #73218C
triadic
#3D218C #8C3D21 #218C3D
tetradic
#3D218C #8C213B #708C21 #218C73
square
#3D218C #8C213B #708C21 #218C73
split-complementary
#3D218C #8C7321 #3B8C21
monochromatic
#120A29 #27155A #3D218C #532DBE #7451D6

Accessibility & contrast

On white

11.70
#3D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3D218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D218C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218C#FFFFFF#000000##FFFFFF
##3D218C1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#1A3F55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d218c;
/* rgb */ color: rgb(61, 33, 140);
/* oklch */ color: oklch(35.9% 0.164 286.9);
Tailwind
colors: {
  custom: {
    50: '#7c60af',
    500: '#3d218c',
    950: '#000000',
  },
}
SCSS
$custom: #3d218c;
$custom-light: #7c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218c",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 255.701,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35946,
    "c": 0.16402,
    "h": 286.9
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#3D218C
secondary
#9EB94F
accent
#E543BB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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