#3D208B#3D208B

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

Color values

HEX#3D208B
RGBrgb(61, 32, 139)
HSLhsl(256, 63%, 34%)
HSVhsv(256, 77%, 55%)
CMYKcmyk(56.1%, 77%, 0%, 45.5%)
CIE-LABlab(23.30, 41.18, -54.38)
CIE-LCHlch(23.30, 68.21, 307.13°)
OKLaboklab(35.72% 0.0488 -0.1564)
OKLCHoklch(35.72% 0.164 287.3)
XYZxyz(7.0998, 3.8888, 24.7976)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D208B #6E8B20
analogous
#20388B #3D208B #72208B
triadic
#3D208B #8B3D20 #208B3D
tetradic
#3D208B #8B2038 #6E8B20 #208B72
square
#3D208B #8B2038 #6E8B20 #208B72
split-complementary
#3D208B #8B7220 #388B20
monochromatic
#110928 #271559 #3D208B #532BBD #744FD6

Accessibility & contrast

On white

11.81
#3D208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D208B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D208B#FFFFFF#000000##FFFFFF
##3D208B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d208b;
/* rgb */ color: rgb(61, 32, 139);
/* oklch */ color: oklch(35.7% 0.164 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fae',
    500: '#3d208b',
    950: '#000000',
  },
}
SCSS
$custom: #3d208b;
$custom-light: #7c5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d208b",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 256.262,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35718,
    "c": 0.16388,
    "h": 287.3
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#3D208B
secondary
#9CBA4D
accent
#E642B9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D208B

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

Preview Lab → · Contrast checker → · Palette generator →

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