#3D208C#3D208C

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

Color values

HEX#3D208C
RGBrgb(61, 32, 140)
HSLhsl(256, 63%, 34%)
HSVhsv(256, 77%, 55%)
CMYKcmyk(56.4%, 77.1%, 0%, 45.1%)
CIE-LABlab(23.40, 41.47, -54.84)
CIE-LCHlch(23.40, 68.76, 307.10°)
OKLaboklab(35.82% 0.0485 -0.1578)
OKLCHoklch(35.82% 0.165 287.1)
XYZxyz(7.1732, 3.9182, 25.1842)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D208C #6F8C20
analogous
#20398C #3D208C #73208C
triadic
#3D208C #8C3D20 #208C3D
tetradic
#3D208C #8C2039 #6F8C20 #208C73
square
#3D208C #8C2039 #6F8C20 #208C73
split-complementary
#3D208C #8C7320 #398C20
monochromatic
#120928 #27155A #3D208C #532BBE #7450D7

Accessibility & contrast

On white

11.77
#3D208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D208C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D208C#FFFFFF#000000##FFFFFF
##3D208C1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#1A3E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d208c;
/* rgb */ color: rgb(61, 32, 140);
/* oklch */ color: oklch(35.8% 0.165 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c5faf',
    500: '#3d208c',
    950: '#000000',
  },
}
SCSS
$custom: #3d208c;
$custom-light: #7c5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d208c",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 256.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35818,
    "c": 0.16508,
    "h": 287.1
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#3D208C
secondary
#9DBA4E
accent
#E642BA
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D208C

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

Preview Lab → · Contrast checker → · Palette generator →

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