#3B219E#3B219E

#3B219E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.186 H 282.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3B219E
RGBrgb(59, 33, 158)
HSLhsl(252, 65%, 37%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(62.7%, 79.1%, 0%, 38%)
CIE-LABlab(25.22, 46.09, -62.95)
CIE-LCHlch(25.22, 78.02, 306.21°)
OKLaboklab(37.59% 0.0396 -0.1816)
OKLCHoklch(37.59% 0.186 282.3)
XYZxyz(8.5171, 4.4855, 32.7581)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B219E #849E21
analogous
#21469E #3B219E #7A219E
triadic
#3B219E #9E3B21 #219E3B
tetradic
#3B219E #9E2146 #849E21 #219E7A
square
#3B219E #9E2146 #849E21 #219E7A
split-complementary
#3B219E #9E7A21 #469E21
monochromatic
#150C39 #28166B #3B219E #4E2CD1 #775CDD

Accessibility & contrast

On white

11.07
#3B219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3B219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B219E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B219E#FFFFFF#000000##FFFFFF
##3B219E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3b219e;
/* rgb */ color: rgb(59, 33, 158);
/* oklch */ color: oklch(37.6% 0.186 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e60bc',
    500: '#3b219e',
    950: '#000000',
  },
}
SCSS
$custom: #3b219e;
$custom-light: #7e60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b219e",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 252.48,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37594,
    "c": 0.18584,
    "h": 282.3
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#3B219E
secondary
#ACC159
accent
#E83FC5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B219E

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

Preview Lab → · Contrast checker → · Palette generator →

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