#3C1B82#3C1B82

#3C1B82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.158 H 289.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3C1B82
RGBrgb(60, 27, 130)
HSLhsl(259, 66%, 31%)
HSVhsv(259, 79%, 51%)
CMYKcmyk(53.8%, 79.2%, 0%, 49%)
CIE-LABlab(21.42, 40.90, -51.83)
CIE-LCHlch(21.42, 66.02, 308.28°)
OKLaboklab(34.1% 0.0538 -0.149)
OKLCHoklch(34.1% 0.158 289.8)
XYZxyz(6.2835, 3.3559, 21.4314)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B82 #61821B
analogous
#1B2E82 #3C1B82 #6F1B82
triadic
#3C1B82 #823C1B #1B823C
tetradic
#3C1B82 #821B2E #61821B #1B826F
square
#3C1B82 #821B2E #61821B #1B826F
split-complementary
#3C1B82 #826F1B #2E821B
monochromatic
#0D061D #25104F #3C1B82 #5326B5 #7140D7

Accessibility & contrast

On white

12.57
#3C1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3C1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1B82
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B82#FFFFFF#000000##FFFFFF
##3C1B821.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#22384E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3c1b82;
/* rgb */ color: rgb(60, 27, 130);
/* oklch */ color: oklch(34.1% 0.158 289.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ca7',
    500: '#3c1b82',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b82;
$custom-light: #7a5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b82",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 259.223,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.15838,
    "h": 289.8
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#3C1B82
secondary
#91B643
accent
#E93FB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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