#3D218B#3D218B

#3D218B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.163 H 287.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3D218B
RGBrgb(61, 33, 139)
HSLhsl(256, 62%, 34%)
HSVhsv(256, 76%, 55%)
CMYKcmyk(56.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(23.48, 40.66, -54.08)
CIE-LCHlch(23.48, 67.65, 306.94°)
OKLaboklab(35.85% 0.048 -0.1556)
OKLCHoklch(35.85% 0.163 287.1)
XYZxyz(7.1271, 3.9435, 24.8067)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218B #6F8B21
analogous
#213A8B #3D218B #72218B
triadic
#3D218B #8B3D21 #218B3D
tetradic
#3D218B #8B213A #6F8B21 #218B72
square
#3D218B #8B213A #6F8B21 #218B72
split-complementary
#3D218B #8B7221 #3A8B21
monochromatic
#120A28 #27155A #3D218B #532DBC #7451D6

Accessibility & contrast

On white

11.74
#3D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D218B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218B#FFFFFF#000000##FFFFFF
##3D218B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#1B3E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d218b;
/* rgb */ color: rgb(61, 33, 139);
/* oklch */ color: oklch(35.8% 0.163 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c60ae',
    500: '#3d218b',
    950: '#000000',
  },
}
SCSS
$custom: #3d218b;
$custom-light: #7c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218b",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 255.849,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35847,
    "c": 0.1628,
    "h": 287.1
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#3D218B
secondary
#9DB94F
accent
#E543BA
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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