#3D218A#3D218A

#3D218A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.162 H 287.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3D218A
RGBrgb(61, 33, 138)
HSLhsl(256, 61%, 34%)
HSVhsv(256, 76%, 54%)
CMYKcmyk(55.8%, 76.1%, 0%, 45.9%)
CIE-LABlab(23.39, 40.36, -53.61)
CIE-LCHlch(23.39, 67.10, 306.97°)
OKLaboklab(35.75% 0.0482 -0.1542)
OKLCHoklch(35.75% 0.162 287.4)
XYZxyz(7.0544, 3.9144, 24.4237)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218A #6E8A21
analogous
#21398A #3D218A #71218A
triadic
#3D218A #8A3D21 #218A3D
tetradic
#3D218A #8A2139 #6E8A21 #218A71
square
#3D218A #8A2139 #6E8A21 #218A71
split-complementary
#3D218A #8A7121 #398A21
monochromatic
#110927 #271559 #3D218A #532DBB #7450D5

Accessibility & contrast

On white

11.78
#3D218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3D218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D218A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218A#FFFFFF#000000##FFFFFF
##3D218A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#1D3E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d218a;
/* rgb */ color: rgb(61, 33, 138);
/* oklch */ color: oklch(35.7% 0.162 287.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fad',
    500: '#3d218a',
    950: '#000000',
  },
}
SCSS
$custom: #3d218a;
$custom-light: #7c5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218a",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 256,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.16158,
    "h": 287.4
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D218A

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

Preview Lab → · Contrast checker → · Palette generator →

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