#3C217E#3C217E

#3C217E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.147 H 289.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#3C217E
RGBrgb(60, 33, 126)
HSLhsl(257, 58%, 31%)
HSVhsv(257, 74%, 49%)
CMYKcmyk(52.4%, 73.8%, 0%, 50.6%)
CIE-LABlab(22.14, 36.57, -48.11)
CIE-LCHlch(22.14, 60.43, 307.24°)
OKLaboklab(34.49% 0.0496 -0.1381)
OKLCHoklch(34.49% 0.147 289.7)
XYZxyz(6.1721, 3.5545, 20.0955)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C217E #637E21
analogous
#21347E #3C217E #6A217E
triadic
#3C217E #7E3C21 #217E3C
tetradic
#3C217E #7E2134 #637E21 #217E6A
square
#3C217E #7E2134 #637E21 #217E6A
split-complementary
#3C217E #7E6A21 #347E21
monochromatic
#0E081D #25144E #3C217E #532EAE #714AD0

Accessibility & contrast

On white

12.27
#3C217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C217E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C217E#FFFFFF#000000##FFFFFF
##3C217E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#25394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c217e;
/* rgb */ color: rgb(60, 33, 126);
/* oklch */ color: oklch(34.5% 0.147 289.7);
Tailwind
colors: {
  custom: {
    50: '#795fa4',
    500: '#3c217e',
    950: '#000000',
  },
}
SCSS
$custom: #3c217e;
$custom-light: #795fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c217e",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 257.419,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.14675,
    "h": 289.7
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#3C217E
secondary
#93B14A
accent
#E246B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C217E

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

Preview Lab → · Contrast checker → · Palette generator →

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