#3C1A7B#3C1A7B

#3C1A7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.151 H 292.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#3C1A7B
RGBrgb(60, 26, 123)
HSLhsl(261, 65%, 29%)
HSVhsv(261, 79%, 48%)
CMYKcmyk(51.2%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.55, 39.37, -48.80)
CIE-LCHlch(20.55, 62.70, 308.89°)
OKLaboklab(33.29% 0.0567 -0.1401)
OKLCHoklch(33.29% 0.151 292)
XYZxyz(5.8070, 3.1293, 19.0331)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1A7B #597B1A
analogous
#1A297B #3C1A7B #6D1A7B
triadic
#3C1A7B #7B3C1A #1A7B3C
tetradic
#3C1A7B #7B1A29 #597B1A #1A7B6D
square
#3C1A7B #7B1A29 #597B1A #1A7B6D
split-complementary
#3C1A7B #7B6D1A #297B1A
monochromatic
#0C0519 #230F48 #3C1A7B #5525AE #703AD5

Accessibility & contrast

On white

12.92
#3C1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3C1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1A7B
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1A7B#FFFFFF#000000##FFFFFF
##3C1A7B1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#27354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c1a7b;
/* rgb */ color: rgb(60, 26, 123);
/* oklch */ color: oklch(33.3% 0.151 292.0);
Tailwind
colors: {
  custom: {
    50: '#795ba2',
    500: '#3c1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #3c1a7b;
$custom-light: #795ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1a7b",
  "rgb": {
    "r": 60,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 261.031,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33287,
    "c": 0.15113,
    "h": 292
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#3C1A7B
secondary
#89AF42
accent
#E840AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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