#3C2170#3C2170

#3C2170 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.129 H 293.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3C2170
RGBrgb(60, 33, 112)
HSLhsl(261, 54%, 28%)
HSVhsv(261, 71%, 44%)
CMYKcmyk(46.4%, 70.5%, 0%, 56.1%)
CIE-LABlab(20.90, 32.36, -41.19)
CIE-LCHlch(20.90, 52.38, 308.15°)
OKLaboklab(33.22% 0.0522 -0.1178)
OKLCHoklch(33.22% 0.129 293.9)
XYZxyz(5.3312, 3.2181, 15.6664)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2170 #557021
analogous
#212D70 #3C2170 #632170
triadic
#3C2170 #703C21 #21703C
tetradic
#3C2170 #70212D #557021 #217063
square
#3C2170 #70212D #557021 #217063
split-complementary
#3C2170 #706321 #2D7021
monochromatic
#0D0718 #231341 #3C2170 #552F9F #7144C8

Accessibility & contrast

On white

12.78
#3C2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3C2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2170
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2170#FFFFFF#000000##FFFFFF
##3C21701.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#2D3445
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c2170;
/* rgb */ color: rgb(60, 33, 112);
/* oklch */ color: oklch(33.2% 0.129 293.9);
Tailwind
colors: {
  custom: {
    50: '#775e9a',
    500: '#3c2170',
    950: '#000000',
  },
}
SCSS
$custom: #3c2170;
$custom-light: #775e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2170",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 260.506,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.12885,
    "h": 293.9
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#3C2170
secondary
#85A449
accent
#DE4AAB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C2170

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

Preview Lab → · Contrast checker → · Palette generator →

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