#3D21B2#3D21B2

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

Color values

HEX#3D21B2
RGBrgb(61, 33, 178)
HSLhsl(252, 69%, 41%)
HSVhsv(252, 81%, 70%)
CMYKcmyk(65.7%, 81.5%, 0%, 30.2%)
CIE-LABlab(27.55, 52.19, -71.16)
CIE-LCHlch(27.55, 88.25, 306.26°)
OKLaboklab(39.9% 0.0365 -0.2054)
OKLCHoklch(39.9% 0.209 280.1)
XYZxyz(10.5017, 5.2933, 42.5791)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D21B2 #96B221
analogous
#214EB2 #3D21B2 #8621B2
triadic
#3D21B2 #B23D21 #21B23D
tetradic
#3D21B2 #B2214E #96B221 #21B286
square
#3D21B2 #B2214E #96B221 #21B286
split-complementary
#3D21B2 #B28621 #4EB221
monochromatic
#1A0E4B #2B177E #3D21B2 #5636DA #816AE3

Accessibility & contrast

On white

10.20
#3D21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D21B2
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D21B2#FFFFFF#000000##FFFFFF
##3D21B21.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d21b2;
/* rgb */ color: rgb(61, 33, 178);
/* oklch */ color: oklch(39.9% 0.209 280.1);
Tailwind
colors: {
  custom: {
    50: '#8362ca',
    500: '#3d21b2',
    950: '#000000',
  },
}
SCSS
$custom: #3d21b2;
$custom-light: #8362ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3d21b2",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 251.586,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39901,
    "c": 0.20864,
    "h": 280.1
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#3D21B2
secondary
#B6C966
accent
#EC3CCA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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