#3C1B7D#3C1B7D

#3C1B7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.152 H 291.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#3C1B7D
RGBrgb(60, 27, 125)
HSLhsl(260, 64%, 30%)
HSVhsv(260, 78%, 49%)
CMYKcmyk(52%, 78.4%, 0%, 51%)
CIE-LABlab(20.92, 39.45, -49.47)
CIE-LCHlch(20.92, 63.27, 308.57°)
OKLaboklab(33.61% 0.0552 -0.1421)
OKLCHoklch(33.61% 0.152 291.2)
XYZxyz(5.9560, 3.2250, 19.7067)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B7D #5C7D1B
analogous
#1B2B7D #3C1B7D #6D1B7D
triadic
#3C1B7D #7D3C1B #1B7D3C
tetradic
#3C1B7D #7D1B2B #5C7D1B #1B7D6D
square
#3C1B7D #7D1B2B #5C7D1B #1B7D6D
split-complementary
#3C1B7D #7D6D1B #2B7D1B
monochromatic
#0C0519 #24104B #3C1B7D #5426AF #703DD5

Accessibility & contrast

On white

12.77
#3C1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3C1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1B7D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B7D#FFFFFF#000000##FFFFFF
##3C1B7D1.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#26364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1b7d;
/* rgb */ color: rgb(60, 27, 125);
/* oklch */ color: oklch(33.6% 0.152 291.2);
Tailwind
colors: {
  custom: {
    50: '#795ba4',
    500: '#3c1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b7d;
$custom-light: #795ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b7d",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 260.204,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33605,
    "c": 0.15243,
    "h": 291.2
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#3C1B7D
secondary
#8CB143
accent
#E740AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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