#3D20A7#3D20A7

#3D20A7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.197 H 281.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3D20A7
RGBrgb(61, 32, 167)
HSLhsl(253, 68%, 39%)
HSVhsv(253, 81%, 65%)
CMYKcmyk(63.5%, 80.8%, 0%, 34.5%)
CIE-LABlab(26.20, 49.44, -66.79)
CIE-LCHlch(26.20, 83.10, 306.51°)
OKLaboklab(38.61% 0.0404 -0.1927)
OKLCHoklch(38.61% 0.197 281.8)
XYZxyz(9.4138, 4.8144, 36.9849)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D20A7 #8AA720
analogous
#2047A7 #3D20A7 #8120A7
triadic
#3D20A7 #A73D20 #20A73D
tetradic
#3D20A7 #A72047 #8AA720 #20A781
square
#3D20A7 #A72047 #8AA720 #20A781
split-complementary
#3D20A7 #A78120 #47A720
monochromatic
#170C40 #2A1674 #3D20A7 #522DD7 #7C61E1

Accessibility & contrast

On white

10.70
#3D20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3D20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D20A7
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D20A7#FFFFFF#000000##FFFFFF
##3D20A71.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d20a7;
/* rgb */ color: rgb(61, 32, 167);
/* oklch */ color: oklch(38.6% 0.197 281.8);
Tailwind
colors: {
  custom: {
    50: '#8161c2',
    500: '#3d20a7',
    950: '#000000',
  },
}
SCSS
$custom: #3d20a7;
$custom-light: #8161c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d20a7",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 252.889,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38609,
    "c": 0.19689,
    "h": 281.8
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#3D20A7
secondary
#AFC55D
accent
#EB3DC5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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