#3D20B4#3D20B4

#3D20B4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.0% C 0.212 H 279.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#3D20B4
RGBrgb(61, 32, 180)
HSLhsl(252, 70%, 42%)
HSVhsv(252, 82%, 71%)
CMYKcmyk(66.1%, 82.2%, 0%, 29.4%)
CIE-LABlab(27.63, 53.21, -72.24)
CIE-LCHlch(27.63, 89.72, 306.37°)
OKLaboklab(40.02% 0.0363 -0.2085)
OKLCHoklch(40.02% 0.212 279.9)
XYZxyz(10.6766, 5.3195, 43.6353)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D20B4 #97B420
analogous
#204DB4 #3D20B4 #8720B4
triadic
#3D20B4 #B43D20 #20B43D
tetradic
#3D20B4 #B4204D #97B420 #20B487
square
#3D20B4 #B4204D #97B420 #20B487
split-complementary
#3D20B4 #B48720 #4DB420
monochromatic
#1A0E4C #2B1780 #3D20B4 #5636DB #826AE4

Accessibility & contrast

On white

10.17
#3D20B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3D20B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D20B4
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D20B4#FFFFFF#000000##FFFFFF
##3D20B41.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004E6C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d20b4;
/* rgb */ color: rgb(61, 32, 180);
/* oklch */ color: oklch(40.0% 0.212 279.9);
Tailwind
colors: {
  custom: {
    50: '#8462cc',
    500: '#3d20b4',
    950: '#000000',
  },
}
SCSS
$custom: #3d20b4;
$custom-light: #8462cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d20b4",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 251.757,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40015,
    "c": 0.21168,
    "h": 279.9
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#3D20B4
secondary
#B7CA66
accent
#ED3BCA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3D20B4

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

Preview Lab → · Contrast checker → · Palette generator →

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