#3C1B94#3C1B94

#3C1B94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.179 H 285.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3C1B94
RGBrgb(60, 27, 148)
HSLhsl(256, 69%, 34%)
HSVhsv(256, 82%, 58%)
CMYKcmyk(59.5%, 81.8%, 0%, 42%)
CIE-LABlab(23.28, 46.10, -60.01)
CIE-LCHlch(23.28, 75.67, 307.53°)
OKLaboklab(35.96% 0.048 -0.1729)
OKLCHoklch(35.96% 0.179 285.5)
XYZxyz(7.5991, 3.8822, 28.3601)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B94 #73941B
analogous
#1B3694 #3C1B94 #791B94
triadic
#3C1B94 #943C1B #1B943C
tetradic
#3C1B94 #941B36 #73941B #1B9479
square
#3C1B94 #941B36 #73941B #1B9479
split-complementary
#3C1B94 #94791B #36941B
monochromatic
#12082C #271260 #3C1B94 #5124C8 #734BDE

Accessibility & contrast

On white

11.82
#3C1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3C1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1B94
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B94#FFFFFF#000000##FFFFFF
##3C1B941.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#0A3F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3c1b94;
/* rgb */ color: rgb(60, 27, 148);
/* oklch */ color: oklch(36.0% 0.179 285.5);
Tailwind
colors: {
  custom: {
    50: '#7d5db5',
    500: '#3c1b94',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b94;
$custom-light: #7d5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b94",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 256.364,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.17941,
    "h": 285.5
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#3C1B94
secondary
#A0C04B
accent
#EC3CBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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