#3C1D8A#3C1D8A

#3C1D8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.166 H 287.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3C1D8A
RGBrgb(60, 29, 138)
HSLhsl(257, 65%, 33%)
HSVhsv(257, 79%, 54%)
CMYKcmyk(56.5%, 79%, 0%, 45.9%)
CIE-LABlab(22.56, 42.25, -54.97)
CIE-LCHlch(22.56, 69.33, 307.55°)
OKLaboklab(35.15% 0.0498 -0.1582)
OKLCHoklch(35.15% 0.166 287.5)
XYZxyz(6.8889, 3.6740, 24.3860)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1D8A #6B8A1D
analogous
#1D358A #3C1D8A #721D8A
triadic
#3C1D8A #8A3C1D #1D8A3C
tetradic
#3C1D8A #8A1D35 #6B8A1D #1D8A72
square
#3C1D8A #8A1D35 #6B8A1D #1D8A72
split-complementary
#3C1D8A #8A721D #358A1D
monochromatic
#100825 #261257 #3C1D8A #5228BD #7249D9

Accessibility & contrast

On white

12.11
#3C1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1D8A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1D8A#FFFFFF#000000##FFFFFF
##3C1D8A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.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: #3c1d8a;
/* rgb */ color: rgb(60, 29, 138);
/* oklch */ color: oklch(35.1% 0.166 287.5);
Tailwind
colors: {
  custom: {
    50: '#7b5dad',
    500: '#3c1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3c1d8a;
$custom-light: #7b5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1d8a",
  "rgb": {
    "r": 60,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 257.064,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35146,
    "c": 0.16584,
    "h": 287.5
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#3C1D8A
secondary
#9ABB48
accent
#E840B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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