#3D216F#3D216F

#3D216F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.128 H 295.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3D216F
RGBrgb(61, 33, 111)
HSLhsl(262, 54%, 28%)
HSVhsv(262, 70%, 44%)
CMYKcmyk(45%, 70.3%, 0%, 56.5%)
CIE-LABlab(20.93, 32.27, -40.48)
CIE-LCHlch(20.93, 51.77, 308.56°)
OKLaboklab(33.25% 0.0539 -0.1157)
OKLCHoklch(33.25% 0.128 295)
XYZxyz(5.3368, 3.2274, 15.3776)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D216F #536F21
analogous
#212C6F #3D216F #64216F
triadic
#3D216F #6F3D21 #216F3D
tetradic
#3D216F #6F212C #536F21 #216F64
square
#3D216F #6F212C #536F21 #216F64
split-complementary
#3D216F #6F6421 #2C6F21
monochromatic
#0D0718 #231340 #3D216F #572F9E #7343C7

Accessibility & contrast

On white

12.76
#3D216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3D216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D216F
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D216F#FFFFFF#000000##FFFFFF
##3D216F1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#303445
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d216f;
/* rgb */ color: rgb(61, 33, 111);
/* oklch */ color: oklch(33.2% 0.128 295.0);
Tailwind
colors: {
  custom: {
    50: '#775e99',
    500: '#3d216f',
    950: '#000000',
  },
}
SCSS
$custom: #3d216f;
$custom-light: #775e99;
$custom-dark: #000000;
JSON
{
  "hex": "#3d216f",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 261.538,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.12762,
    "h": 295
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#3D216F
secondary
#83A349
accent
#DE4AA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D216F

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

Preview Lab → · Contrast checker → · Palette generator →

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