#3C1FA7#3C1FA7

#3C1FA7 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.198 H 281.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#3C1FA7
RGBrgb(60, 31, 167)
HSLhsl(253, 69%, 39%)
HSVhsv(253, 81%, 65%)
CMYKcmyk(64.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(25.95, 49.79, -67.20)
CIE-LCHlch(25.95, 83.64, 306.54°)
OKLaboklab(38.41% 0.0394 -0.1939)
OKLCHoklch(38.41% 0.198 281.5)
XYZxyz(9.3263, 4.7300, 36.9732)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1FA7 #8AA71F
analogous
#1F46A7 #3C1FA7 #801FA7
triadic
#3C1FA7 #A73C1F #1FA73C
tetradic
#3C1FA7 #A71F46 #8AA71F #1FA780
square
#3C1FA7 #A71F46 #8AA71F #1FA780
split-complementary
#3C1FA7 #A7801F #46A71F
monochromatic
#170C40 #291573 #3C1FA7 #502BD8 #7B5FE1

Accessibility & contrast

On white

10.79
#3C1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3C1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1FA7
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1FA7#FFFFFF#000000##FFFFFF
##3C1FA71.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3c1fa7;
/* rgb */ color: rgb(60, 31, 167);
/* oklch */ color: oklch(38.4% 0.198 281.5);
Tailwind
colors: {
  custom: {
    50: '#8160c2',
    500: '#3c1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3c1fa7;
$custom-light: #8160c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1fa7",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 252.794,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38414,
    "c": 0.19788,
    "h": 281.5
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#3C1FA7
secondary
#AFC65C
accent
#EC3CC6
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3C1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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