#3C1F97#3C1F97

#3C1F97 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 284.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3C1F97
RGBrgb(60, 31, 151)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 79%, 59%)
CMYKcmyk(60.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(24.24, 45.10, -60.27)
CIE-LCHlch(24.24, 75.28, 306.81°)
OKLaboklab(36.72% 0.0445 -0.1737)
OKLCHoklch(36.72% 0.179 284.4)
XYZxyz(7.9377, 4.1745, 29.6596)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F97 #7A971F
analogous
#1F3E97 #3C1F97 #781F97
triadic
#3C1F97 #973C1F #1F973C
tetradic
#3C1F97 #971F3E #7A971F #1F9778
square
#3C1F97 #971F3E #7A971F #1F9778
split-complementary
#3C1F97 #97781F #3E971F
monochromatic
#140A31 #281564 #3C1F97 #5029CA #7554DC

Accessibility & contrast

On white

11.44
#3C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F97
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F97#FFFFFF#000000##FFFFFF
##3C1F971.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#01425B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3c1f97;
/* rgb */ color: rgb(60, 31, 151);
/* oklch */ color: oklch(36.7% 0.179 284.4);
Tailwind
colors: {
  custom: {
    50: '#7e5fb7',
    500: '#3c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f97;
$custom-light: #7e5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f97",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 254.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36718,
    "c": 0.17929,
    "h": 284.4
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#3C1F97
secondary
#A5BF52
accent
#E93FC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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