#3C1E97#3C1E97

#3C1E97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.180 H 284.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3C1E97
RGBrgb(60, 30, 151)
HSLhsl(255, 67%, 35%)
HSVhsv(255, 80%, 59%)
CMYKcmyk(60.3%, 80.1%, 0%, 40.8%)
CIE-LABlab(24.07, 45.58, -60.54)
CIE-LCHlch(24.07, 75.78, 306.98°)
OKLaboklab(36.6% 0.0451 -0.1745)
OKLCHoklch(36.6% 0.18 284.5)
XYZxyz(7.9120, 4.1231, 29.6511)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1E97 #79971E
analogous
#1E3C97 #3C1E97 #781E97
triadic
#3C1E97 #973C1E #1E973C
tetradic
#3C1E97 #971E3C #79971E #1E9778
square
#3C1E97 #971E3C #79971E #1E9778
split-complementary
#3C1E97 #97781E #3C971E
monochromatic
#130A31 #281464 #3C1E97 #5028CA #7553DD

Accessibility & contrast

On white

11.51
#3C1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3C1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1E97
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1E97#FFFFFF#000000##FFFFFF
##3C1E971.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#01425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3c1e97;
/* rgb */ color: rgb(60, 30, 151);
/* oklch */ color: oklch(36.6% 0.180 284.5);
Tailwind
colors: {
  custom: {
    50: '#7e5eb7',
    500: '#3c1e97',
    950: '#000000',
  },
}
SCSS
$custom: #3c1e97;
$custom-light: #7e5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1e97",
  "rgb": {
    "r": 60,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 254.876,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.18021,
    "h": 284.5
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#3C1E97
secondary
#A4C051
accent
#EA3EBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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