#3C1C8A#3C1C8A

#3C1C8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.167 H 287.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3C1C8A
RGBrgb(60, 28, 138)
HSLhsl(257, 66%, 33%)
HSVhsv(257, 80%, 54%)
CMYKcmyk(56.5%, 79.7%, 0%, 45.9%)
CIE-LABlab(22.39, 42.74, -55.25)
CIE-LCHlch(22.39, 69.85, 307.72°)
OKLaboklab(35.03% 0.0505 -0.159)
OKLCHoklch(35.03% 0.167 287.6)
XYZxyz(6.8648, 3.6258, 24.3779)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1C8A #6A8A1C
analogous
#1C338A #3C1C8A #731C8A
triadic
#3C1C8A #8A3C1C #1C8A3C
tetradic
#3C1C8A #8A1C33 #6A8A1C #1C8A73
square
#3C1C8A #8A1C33 #6A8A1C #1C8A73
split-complementary
#3C1C8A #8A731C #338A1C
monochromatic
#100724 #261257 #3C1C8A #5226BD #7147DA

Accessibility & contrast

On white

12.17
#3C1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3C1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1C8A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1C8A#FFFFFF#000000##FFFFFF
##3C1C8A1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#1A3C53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c1c8a;
/* rgb */ color: rgb(60, 28, 138);
/* oklch */ color: oklch(35.0% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#7b5dad',
    500: '#3c1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3c1c8a;
$custom-light: #7b5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1c8a",
  "rgb": {
    "r": 60,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 257.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35028,
    "c": 0.16684,
    "h": 287.6
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#3C1C8A
secondary
#99BB46
accent
#E93FB8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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