#3D216B#3D216B

#3D216B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.122 H 296.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#3D216B
RGBrgb(61, 33, 107)
HSLhsl(263, 53%, 27%)
HSVhsv(263, 69%, 42%)
CMYKcmyk(43%, 69.2%, 0%, 58%)
CIE-LABlab(20.60, 31.09, -38.42)
CIE-LCHlch(20.60, 49.43, 308.98°)
OKLaboklab(32.9% 0.0545 -0.1096)
OKLCHoklch(32.9% 0.122 296.4)
XYZxyz(5.1215, 3.1412, 14.2436)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D216B #4F6B21
analogous
#212A6B #3D216B #62216B
triadic
#3D216B #6B3D21 #216B3D
tetradic
#3D216B #6B212A #4F6B21 #216B62
square
#3D216B #6B212A #4F6B21 #216B62
split-complementary
#3D216B #6B6221 #2A6B21
monochromatic
#0D0717 #22133C #3D216B #582F9A #7342C5

Accessibility & contrast

On white

12.90
#3D216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3D216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D216B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D216B#FFFFFF#000000##FFFFFF
##3D216B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#313243
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d216b;
/* rgb */ color: rgb(61, 33, 107);
/* oklch */ color: oklch(32.9% 0.122 296.4);
Tailwind
colors: {
  custom: {
    50: '#775e96',
    500: '#3d216b',
    950: '#000000',
  },
}
SCSS
$custom: #3d216b;
$custom-light: #775e96;
$custom-dark: #000000;
JSON
{
  "hex": "#3d216b",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 262.703,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.12242,
    "h": 296.4
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#3D216B
secondary
#7E9F49
accent
#DC4CA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D216B

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

Preview Lab → · Contrast checker → · Palette generator →

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