#3C1F87#3C1F87

#3C1F87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.160 H 287.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3C1F87
RGBrgb(60, 31, 135)
HSLhsl(257, 63%, 33%)
HSVhsv(257, 77%, 53%)
CMYKcmyk(55.6%, 77%, 0%, 47.1%)
CIE-LABlab(22.62, 40.35, -53.00)
CIE-LCHlch(22.62, 66.61, 307.28°)
OKLaboklab(35.09% 0.0491 -0.1524)
OKLCHoklch(35.09% 0.16 287.8)
XYZxyz(6.7253, 3.6896, 23.2748)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F87 #6A871F
analogous
#1F3687 #3C1F87 #701F87
triadic
#3C1F87 #873C1F #1F873C
tetradic
#3C1F87 #871F36 #6A871F #1F8770
square
#3C1F87 #871F36 #6A871F #1F8770
split-complementary
#3C1F87 #87701F #36871F
monochromatic
#100823 #261455 #3C1F87 #522AB9 #714BD6

Accessibility & contrast

On white

12.08
#3C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3C1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F87
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F87#FFFFFF#000000##FFFFFF
##3C1F871.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#1D3C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c1f87;
/* rgb */ color: rgb(60, 31, 135);
/* oklch */ color: oklch(35.1% 0.160 287.8);
Tailwind
colors: {
  custom: {
    50: '#7b5eab',
    500: '#3c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f87;
$custom-light: #7b5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f87",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 256.731,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35093,
    "c": 0.16016,
    "h": 287.8
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#3C1F87
secondary
#99B84A
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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