#3D20B3#3D20B3

#3D20B3 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.9% C 0.211 H 280.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#3D20B3
RGBrgb(61, 32, 179)
HSLhsl(252, 70%, 41%)
HSVhsv(252, 82%, 70%)
CMYKcmyk(65.9%, 82.1%, 0%, 29.8%)
CIE-LABlab(27.52, 52.92, -71.82)
CIE-LCHlch(27.52, 89.21, 306.38°)
OKLaboklab(39.91% 0.0366 -0.2073)
OKLCHoklch(39.91% 0.211 280)
XYZxyz(10.5751, 5.2789, 43.1007)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D20B3 #96B320
analogous
#204DB3 #3D20B3 #8720B3
triadic
#3D20B3 #B33D20 #20B33D
tetradic
#3D20B3 #B3204D #96B320 #20B387
square
#3D20B3 #B3204D #96B320 #20B387
split-complementary
#3D20B3 #B38720 #4DB320
monochromatic
#1A0D4B #2B177F #3D20B3 #5635DB #8169E4

Accessibility & contrast

On white

10.21
#3D20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D20B3
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D20B3#FFFFFF#000000##FFFFFF
##3D20B31.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B7
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d20b3;
/* rgb */ color: rgb(61, 32, 179);
/* oklch */ color: oklch(39.9% 0.211 280.0);
Tailwind
colors: {
  custom: {
    50: '#8361cb',
    500: '#3d20b3',
    950: '#000000',
  },
}
SCSS
$custom: #3d20b3;
$custom-light: #8361cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3d20b3",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 251.837,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39906,
    "c": 0.21055,
    "h": 280
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#3D20B3
secondary
#B6CA65
accent
#EC3BCA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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