#3C1B8A#3C1B8A

#3C1B8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.168 H 287.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3C1B8A
RGBrgb(60, 27, 138)
HSLhsl(258, 67%, 32%)
HSVhsv(258, 80%, 54%)
CMYKcmyk(56.5%, 80.4%, 0%, 45.9%)
CIE-LABlab(22.23, 43.21, -55.52)
CIE-LCHlch(22.23, 70.36, 307.89°)
OKLaboklab(34.91% 0.0513 -0.1598)
OKLCHoklch(34.91% 0.168 287.8)
XYZxyz(6.8415, 3.5791, 24.3702)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B8A #698A1B
analogous
#1B318A #3C1B8A #741B8A
triadic
#3C1B8A #8A3C1B #1B8A3C
tetradic
#3C1B8A #8A1B31 #698A1B #1B8A74
square
#3C1B8A #8A1B31 #698A1B #1B8A74
split-complementary
#3C1B8A #8A741B #318A1B
monochromatic
#0F0724 #261157 #3C1B8A #5225BD #7145DB

Accessibility & contrast

On white

12.24
#3C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3C1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1B8A
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B8A#FFFFFF#000000##FFFFFF
##3C1B8A1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#1A3B52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1b8a;
/* rgb */ color: rgb(60, 27, 138);
/* oklch */ color: oklch(34.9% 0.168 287.8);
Tailwind
colors: {
  custom: {
    50: '#7b5cad',
    500: '#3c1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b8a;
$custom-light: #7b5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b8a",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 257.838,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.1678,
    "h": 287.8
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#3C1B8A
secondary
#99BC45
accent
#EA3EB7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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