#3D219C#3D219C

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

Color values

HEX#3D219C
RGBrgb(61, 33, 156)
HSLhsl(254, 65%, 37%)
HSVhsv(254, 79%, 61%)
CMYKcmyk(60.9%, 78.8%, 0%, 38.8%)
CIE-LABlab(25.20, 45.73, -61.75)
CIE-LCHlch(25.20, 76.84, 306.52°)
OKLaboklab(37.57% 0.0432 -0.178)
OKLCHoklch(37.57% 0.183 283.6)
XYZxyz(8.4672, 4.4795, 31.8645)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D219C #809C21
analogous
#21429C #3D219C #7B219C
triadic
#3D219C #9C3D21 #219C3D
tetradic
#3D219C #9C2142 #809C21 #219C7B
square
#3D219C #9C2142 #809C21 #219C7B
split-complementary
#3D219C #9C7B21 #429C21
monochromatic
#150C37 #291669 #3D219C #512CCF #795BDC

Accessibility & contrast

On white

11.08
#3D219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D219C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D219C#FFFFFF#000000##FFFFFF
##3D219C1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d219c;
/* rgb */ color: rgb(61, 33, 156);
/* oklch */ color: oklch(37.6% 0.183 283.6);
Tailwind
colors: {
  custom: {
    50: '#7f60ba',
    500: '#3d219c',
    950: '#000000',
  },
}
SCSS
$custom: #3d219c;
$custom-light: #7f60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d219c",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 253.659,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37565,
    "c": 0.18319,
    "h": 283.6
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#3D219C
secondary
#A9C158
accent
#E840C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D219C

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

Preview Lab → · Contrast checker → · Palette generator →

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