#3C1A7C#3C1A7C

#3C1A7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 291.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#3C1A7C
RGBrgb(60, 26, 124)
HSLhsl(261, 65%, 29%)
HSVhsv(261, 79%, 49%)
CMYKcmyk(51.6%, 79%, 0%, 51.4%)
CIE-LABlab(20.65, 39.65, -49.28)
CIE-LCHlch(20.65, 63.25, 308.82°)
OKLaboklab(33.39% 0.0564 -0.1415)
OKLCHoklch(33.39% 0.152 291.7)
XYZxyz(5.8699, 3.1545, 19.3645)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1A7C #5A7C1A
analogous
#1A297C #3C1A7C #6D1A7C
triadic
#3C1A7C #7C3C1A #1A7C3C
tetradic
#3C1A7C #7C1A29 #5A7C1A #1A7C6D
square
#3C1A7C #7C1A29 #5A7C1A #1A7C6D
split-complementary
#3C1A7C #7C6D1A #297C1A
monochromatic
#0C0519 #240F49 #3C1A7C #5425AF #703BD6

Accessibility & contrast

On white

12.88
#3C1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1A7C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1A7C#FFFFFF#000000##FFFFFF
##3C1A7C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#27354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1a7c;
/* rgb */ color: rgb(60, 26, 124);
/* oklch */ color: oklch(33.4% 0.152 291.7);
Tailwind
colors: {
  custom: {
    50: '#795ba3',
    500: '#3c1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #3c1a7c;
$custom-light: #795ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1a7c",
  "rgb": {
    "r": 60,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 260.816,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33386,
    "c": 0.15232,
    "h": 291.7
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#3C1A7C
secondary
#8AB042
accent
#E840AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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