#3D218D#3D218D

#3D218D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.165 H 286.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3D218D
RGBrgb(61, 33, 141)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 77%, 55%)
CMYKcmyk(56.7%, 76.6%, 0%, 44.7%)
CIE-LABlab(23.68, 41.26, -55.00)
CIE-LCHlch(23.68, 68.75, 306.87°)
OKLaboklab(36.05% 0.0474 -0.1583)
OKLCHoklch(36.05% 0.165 286.7)
XYZxyz(7.2746, 4.0025, 25.5834)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218D #718D21
analogous
#213B8D #3D218D #73218D
triadic
#3D218D #8D3D21 #218D3D
tetradic
#3D218D #8D213B #718D21 #218D73
square
#3D218D #8D213B #718D21 #218D73
split-complementary
#3D218D #8D7321 #3B8D21
monochromatic
#120A2A #28155B #3D218D #522DBF #7452D6

Accessibility & contrast

On white

11.66
#3D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D218D
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218D#FFFFFF#000000##FFFFFF
##3D218D1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#193F55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d218d;
/* rgb */ color: rgb(61, 33, 141);
/* oklch */ color: oklch(36.0% 0.165 286.7);
Tailwind
colors: {
  custom: {
    50: '#7c60af',
    500: '#3d218d',
    950: '#000000',
  },
}
SCSS
$custom: #3d218d;
$custom-light: #7c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218d",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 255.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36045,
    "c": 0.16523,
    "h": 286.7
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#3D218D
secondary
#9EBA50
accent
#E543BB
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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