#3D219B#3D219B

#3D219B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.182 H 283.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3D219B
RGBrgb(61, 33, 155)
HSLhsl(254, 65%, 37%)
HSVhsv(254, 79%, 61%)
CMYKcmyk(60.6%, 78.7%, 0%, 39.2%)
CIE-LABlab(25.09, 45.44, -61.31)
CIE-LCHlch(25.09, 76.31, 306.54°)
OKLaboklab(37.46% 0.0435 -0.1767)
OKLCHoklch(37.46% 0.182 283.8)
XYZxyz(8.3829, 4.4458, 31.4204)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D219B #7F9B21
analogous
#21429B #3D219B #7A219B
triadic
#3D219B #9B3D21 #219B3D
tetradic
#3D219B #9B2142 #7F9B21 #219B7A
square
#3D219B #9B2142 #7F9B21 #219B7A
split-complementary
#3D219B #9B7A21 #429B21
monochromatic
#150C36 #291669 #3D219B #512CCD #785ADC

Accessibility & contrast

On white

11.12
#3D219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3D219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D219B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D219B#FFFFFF#000000##FFFFFF
##3D219B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d219b;
/* rgb */ color: rgb(61, 33, 155);
/* oklch */ color: oklch(37.5% 0.182 283.8);
Tailwind
colors: {
  custom: {
    50: '#7f60ba',
    500: '#3d219b',
    950: '#000000',
  },
}
SCSS
$custom: #3d219b;
$custom-light: #7f60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d219b",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 253.77,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.182,
    "h": 283.8
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#3D219B
secondary
#A8C058
accent
#E840C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D219B

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

Preview Lab → · Contrast checker → · Palette generator →

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