#3D216E#3D216E

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

Color values

HEX#3D216E
RGBrgb(61, 33, 110)
HSLhsl(262, 54%, 28%)
HSVhsv(262, 70%, 43%)
CMYKcmyk(44.5%, 70%, 0%, 56.9%)
CIE-LABlab(20.85, 31.97, -39.97)
CIE-LCHlch(20.85, 51.18, 308.66°)
OKLaboklab(33.16% 0.0541 -0.1142)
OKLCHoklch(33.16% 0.126 295.3)
XYZxyz(5.2820, 3.2055, 15.0893)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D216E #526E21
analogous
#212B6E #3D216E #63216E
triadic
#3D216E #6E3D21 #216E3D
tetradic
#3D216E #6E212B #526E21 #216E63
square
#3D216E #6E212B #526E21 #216E63
split-complementary
#3D216E #6E6321 #2B6E21
monochromatic
#0D0718 #23133F #3D216E #572F9D #7343C7

Accessibility & contrast

On white

12.80
#3D216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D216E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D216E#FFFFFF#000000##FFFFFF
##3D216E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#303344
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d216e;
/* rgb */ color: rgb(61, 33, 110);
/* oklch */ color: oklch(33.2% 0.126 295.3);
Tailwind
colors: {
  custom: {
    50: '#775e98',
    500: '#3d216e',
    950: '#000000',
  },
}
SCSS
$custom: #3d216e;
$custom-light: #775e98;
$custom-dark: #000000;
JSON
{
  "hex": "#3d216e",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 261.818,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3316,
    "c": 0.12633,
    "h": 295.3
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#3D216E
secondary
#81A249
accent
#DD4BA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3D216E

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

Preview Lab → · Contrast checker → · Palette generator →

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