#3D20B2#3D20B2

#3D20B2 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.209 H 280.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#3D20B2
RGBrgb(61, 32, 178)
HSLhsl(252, 70%, 41%)
HSVhsv(252, 82%, 70%)
CMYKcmyk(65.7%, 82%, 0%, 30.2%)
CIE-LABlab(27.40, 52.63, -71.41)
CIE-LCHlch(27.40, 88.71, 306.39°)
OKLaboklab(39.8% 0.0369 -0.2061)
OKLCHoklch(39.8% 0.209 280.2)
XYZxyz(10.4743, 5.2386, 42.5700)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D20B2 #95B220
analogous
#204CB2 #3D20B2 #8620B2
triadic
#3D20B2 #B23D20 #20B23D
tetradic
#3D20B2 #B2204C #95B220 #20B286
square
#3D20B2 #B2204C #95B220 #20B286
split-complementary
#3D20B2 #B28620 #4CB220
monochromatic
#190D4A #2B177E #3D20B2 #5635DB #8168E4

Accessibility & contrast

On white

10.25
#3D20B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3D20B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D20B2
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D20B2#FFFFFF#000000##FFFFFF
##3D20B21.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d20b2;
/* rgb */ color: rgb(61, 32, 178);
/* oklch */ color: oklch(39.8% 0.209 280.2);
Tailwind
colors: {
  custom: {
    50: '#8361ca',
    500: '#3d20b2',
    950: '#000000',
  },
}
SCSS
$custom: #3d20b2;
$custom-light: #8361ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3d20b2",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 178
  },
  "hsl": {
    "h": 251.918,
    "s": 69.524,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.20943,
    "h": 280.2
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#3D20B2
secondary
#B5CA64
accent
#EC3BC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D20B2

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

Preview Lab → · Contrast checker → · Palette generator →

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