#3C1B71#3C1B71

#3C1B71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.138 H 295.1°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3C1B71
RGBrgb(60, 27, 113)
HSLhsl(263, 61%, 27%)
HSVhsv(263, 76%, 44%)
CMYKcmyk(46.9%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.79, 35.98, -43.64)
CIE-LCHlch(19.79, 56.56, 309.51°)
OKLaboklab(32.46% 0.0584 -0.125)
OKLCHoklch(32.46% 0.138 295.1)
XYZxyz(5.2352, 2.9366, 15.9106)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1B71 #50711B
analogous
#1B2571 #3C1B71 #671B71
triadic
#3C1B71 #713C1B #1B713C
tetradic
#3C1B71 #711B25 #50711B #1B7167
square
#3C1B71 #711B25 #50711B #1B7167
split-complementary
#3C1B71 #71671B #25711B
monochromatic
#0D0619 #220F40 #3C1B71 #5627A2 #7237CF

Accessibility & contrast

On white

13.23
#3C1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3C1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1B71
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1B71#FFFFFF#000000##FFFFFF
##3C1B711.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#2D3144
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c1b71;
/* rgb */ color: rgb(60, 27, 113);
/* oklch */ color: oklch(32.5% 0.138 295.1);
Tailwind
colors: {
  custom: {
    50: '#775b9b',
    500: '#3c1b71',
    950: '#000000',
  },
}
SCSS
$custom: #3c1b71;
$custom-light: #775b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1b71",
  "rgb": {
    "r": 60,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 263.023,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32458,
    "c": 0.13795,
    "h": 295.1
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#3C1B71
secondary
#7FA642
accent
#E543A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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