#3C1371#3C1371

#3C1371 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.147 H 296.5°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3C1371
RGBrgb(60, 19, 113)
HSLhsl(266, 71%, 26%)
HSVhsv(266, 83%, 44%)
CMYKcmyk(46.9%, 83.2%, 0%, 55.7%)
CIE-LABlab(18.45, 39.82, -45.84)
CIE-LCHlch(18.45, 60.72, 310.98°)
OKLaboklab(31.52% 0.0656 -0.1313)
OKLCHoklch(31.52% 0.147 296.5)
XYZxyz(5.0762, 2.6185, 15.8576)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1371 #487113
analogous
#131971 #3C1371 #6B1371
triadic
#3C1371 #713C13 #13713C
tetradic
#3C1371 #711319 #487113 #13716B
square
#3C1371 #711319 #487113 #13716B
split-complementary
#3C1371 #716B13 #197113
monochromatic
#0E041A #200A3D #3C1371 #581CA5 #7425DA

Accessibility & contrast

On white

13.78
#3C1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1371
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1371#FFFFFF#000000##FFFFFF
##3C13711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#2D2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1371;
/* rgb */ color: rgb(60, 19, 113);
/* oklch */ color: oklch(31.5% 0.147 296.5);
Tailwind
colors: {
  custom: {
    50: '#78579b',
    500: '#3c1371',
    950: '#000000',
  },
}
SCSS
$custom: #3c1371;
$custom-light: #78579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1371",
  "rgb": {
    "r": 60,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 266.17,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31517,
    "c": 0.14683,
    "h": 296.5
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#3C1371
secondary
#77A838
accent
#EE3A9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3C1371

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

Preview Lab → · Contrast checker → · Palette generator →

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