#3C1B8B#3C1B8B

#3C1B8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.169 H 287.5°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#3C1B8B
RGBrgb(60, 27, 139)
HSLhsl(258, 67%, 33%)
HSVhsv(258, 81%, 55%)
CMYKcmyk(56.8%, 80.6%, 0%, 45.5%)
CIE-LABlab(22.33, 43.50, -55.98)
CIE-LCHlch(22.33, 70.89, 307.85°)
OKLaboklab(35.02% 0.0509 -0.1611)
OKLCHoklch(35.02% 0.169 287.5)
XYZxyz(6.9142, 3.6082, 24.7532)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B8B #6A8B1B
analogous
#1B328B #3C1B8B #741B8B
triadic
#3C1B8B #8B3C1B #1B8B3C
tetradic
#3C1B8B #8B1B32 #6A8B1B #1B8B74
square
#3C1B8B #8B1B32 #6A8B1B #1B8B74
split-complementary
#3C1B8B #8B741B #328B1B
monochromatic
#100725 #261158 #3C1B8B #5225BE #7145DB

Accessibility & contrast

On white

12.20
#3C1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1B8B
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B8B#FFFFFF#000000##FFFFFF
##3C1B8B1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#193C53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1b8b;
/* rgb */ color: rgb(60, 27, 139);
/* oklch */ color: oklch(35.0% 0.169 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c5cae',
    500: '#3c1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b8b;
$custom-light: #7c5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b8b",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 257.679,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35015,
    "c": 0.16897,
    "h": 287.5
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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