#3C1B87#3C1B87

#3C1B87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.164 H 288.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3C1B87
RGBrgb(60, 27, 135)
HSLhsl(258, 67%, 32%)
HSVhsv(258, 80%, 53%)
CMYKcmyk(55.6%, 80%, 0%, 47.1%)
CIE-LABlab(21.92, 42.34, -54.15)
CIE-LCHlch(21.92, 68.74, 308.03°)
OKLaboklab(34.61% 0.0522 -0.1558)
OKLCHoklch(34.61% 0.164 288.5)
XYZxyz(6.6273, 3.4935, 23.2421)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B87 #66871B
analogous
#1B3087 #3C1B87 #721B87
triadic
#3C1B87 #873C1B #1B873C
tetradic
#3C1B87 #871B30 #66871B #1B8772
square
#3C1B87 #871B30 #66871B #1B8772
split-complementary
#3C1B87 #87721B #30871B
monochromatic
#0F0721 #251154 #3C1B87 #5325BA #7143D9

Accessibility & contrast

On white

12.36
#3C1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1B87
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B87#FFFFFF#000000##FFFFFF
##3C1B871.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#1D3A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3c1b87;
/* rgb */ color: rgb(60, 27, 135);
/* oklch */ color: oklch(34.6% 0.164 288.5);
Tailwind
colors: {
  custom: {
    50: '#7b5cab',
    500: '#3c1b87',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b87;
$custom-light: #7b5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b87",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 258.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34606,
    "c": 0.16428,
    "h": 288.5
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#3C1B87
secondary
#96BA44
accent
#EA3EB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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