#3C1F93#3C1F93

#3C1F93 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.175 H 285.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#3C1F93
RGBrgb(60, 31, 147)
HSLhsl(255, 65%, 35%)
HSVhsv(255, 79%, 58%)
CMYKcmyk(59.2%, 78.9%, 0%, 42.4%)
CIE-LABlab(23.83, 43.92, -58.48)
CIE-LCHlch(23.83, 73.14, 306.90°)
OKLaboklab(36.31% 0.0457 -0.1685)
OKLCHoklch(36.31% 0.175 285.2)
XYZxyz(7.6183, 4.0468, 27.9778)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F93 #76931F
analogous
#1F3C93 #3C1F93 #761F93
triadic
#3C1F93 #933C1F #1F933C
tetradic
#3C1F93 #931F3C #76931F #1F9376
square
#3C1F93 #931F3C #76931F #1F9376
split-complementary
#3C1F93 #93761F #3C931F
monochromatic
#130A2E #271460 #3C1F93 #512AC6 #7452DA

Accessibility & contrast

On white

11.61
#3C1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3C1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F93
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F93#FFFFFF#000000##FFFFFF
##3C1F931.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#0C4158
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3c1f93;
/* rgb */ color: rgb(60, 31, 147);
/* oklch */ color: oklch(36.3% 0.175 285.2);
Tailwind
colors: {
  custom: {
    50: '#7d5fb4',
    500: '#3c1f93',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f93;
$custom-light: #7d5fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f93",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 255,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36305,
    "c": 0.17457,
    "h": 285.2
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#3C1F93
secondary
#A2BE50
accent
#E840BE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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