#3C1D8B#3C1D8B

#3C1D8B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.167 H 287.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3C1D8B
RGBrgb(60, 29, 139)
HSLhsl(257, 65%, 33%)
HSVhsv(257, 79%, 55%)
CMYKcmyk(56.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.66, 42.54, -55.43)
CIE-LCHlch(22.66, 69.87, 307.51°)
OKLaboklab(35.25% 0.0495 -0.1595)
OKLCHoklch(35.25% 0.167 287.2)
XYZxyz(6.9617, 3.7031, 24.7690)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1D8B #6C8B1D
analogous
#1D358B #3C1D8B #731D8B
triadic
#3C1D8B #8B3C1D #1D8B3C
tetradic
#3C1D8B #8B1D35 #6C8B1D #1D8B73
square
#3C1D8B #8B1D35 #6C8B1D #1D8B73
split-complementary
#3C1D8B #8B731D #358B1D
monochromatic
#100826 #261258 #3C1D8B #5228BE #7249D9

Accessibility & contrast

On white

12.06
#3C1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3C1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1D8B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1D8B#FFFFFF#000000##FFFFFF
##3C1D8B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#193D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c1d8b;
/* rgb */ color: rgb(60, 29, 139);
/* oklch */ color: oklch(35.2% 0.167 287.2);
Tailwind
colors: {
  custom: {
    50: '#7c5dae',
    500: '#3c1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #3c1d8b;
$custom-light: #7c5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1d8b",
  "rgb": {
    "r": 60,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 256.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35247,
    "c": 0.16703,
    "h": 287.2
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#3C1D8B
secondary
#9BBB49
accent
#E83FB9
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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