#3C217B#3C217B

#3C217B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.143 H 290.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3C217B
RGBrgb(60, 33, 123)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 73%, 48%)
CMYKcmyk(51.2%, 73.2%, 0%, 51.8%)
CIE-LABlab(21.87, 35.67, -46.66)
CIE-LCHlch(21.87, 58.73, 307.40°)
OKLaboklab(34.21% 0.0502 -0.1339)
OKLCHoklch(34.21% 0.143 290.6)
XYZxyz(5.9815, 3.4782, 19.0912)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C217B #607B21
analogous
#21337B #3C217B #69217B
triadic
#3C217B #7B3C21 #217B3C
tetradic
#3C217B #7B2133 #607B21 #217B69
square
#3C217B #7B2133 #607B21 #217B69
split-complementary
#3C217B #7B6921 #337B21
monochromatic
#0D071A #24144B #3C217B #542EAB #7048CE

Accessibility & contrast

On white

12.38
#3C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3C217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C217B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C217B#FFFFFF#000000##FFFFFF
##3C217B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#27384B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c217b;
/* rgb */ color: rgb(60, 33, 123);
/* oklch */ color: oklch(34.2% 0.143 290.6);
Tailwind
colors: {
  custom: {
    50: '#785fa2',
    500: '#3c217b',
    950: '#000000',
  },
}
SCSS
$custom: #3c217b;
$custom-light: #785fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c217b",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 258,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34213,
    "c": 0.14296,
    "h": 290.6
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#3C217B
secondary
#90AE4A
accent
#E147B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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