#3C1F91#3C1F91

#3C1F91 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.172 H 285.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3C1F91
RGBrgb(60, 31, 145)
HSLhsl(255, 65%, 35%)
HSVhsv(255, 79%, 57%)
CMYKcmyk(58.6%, 78.6%, 0%, 43.1%)
CIE-LABlab(23.62, 43.33, -57.59)
CIE-LCHlch(23.62, 72.06, 306.96°)
OKLaboklab(36.1% 0.0463 -0.1659)
OKLCHoklch(36.1% 0.172 285.6)
XYZxyz(7.4628, 3.9845, 27.1584)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F91 #74911F
analogous
#1F3B91 #3C1F91 #751F91
triadic
#3C1F91 #913C1F #1F913C
tetradic
#3C1F91 #911F3B #74911F #1F9175
square
#3C1F91 #911F3B #74911F #1F9175
split-complementary
#3C1F91 #91751F #3B911F
monochromatic
#12092C #27145F #3C1F91 #512AC3 #7451DA

Accessibility & contrast

On white

11.69
#3C1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3C1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F91
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F91#FFFFFF#000000##FFFFFF
##3C1F911.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#104057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c1f91;
/* rgb */ color: rgb(60, 31, 145);
/* oklch */ color: oklch(36.1% 0.172 285.6);
Tailwind
colors: {
  custom: {
    50: '#7c5fb2',
    500: '#3c1f91',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f91;
$custom-light: #7c5fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f91",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 255.263,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.361,
    "c": 0.17219,
    "h": 285.6
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#3C1F91
secondary
#A1BD4F
accent
#E840BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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