#3C1F99#3C1F99

#3C1F99 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.182 H 284.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3C1F99
RGBrgb(60, 31, 153)
HSLhsl(254, 66%, 36%)
HSVhsv(254, 80%, 60%)
CMYKcmyk(60.8%, 79.7%, 0%, 40%)
CIE-LABlab(24.45, 45.69, -61.15)
CIE-LCHlch(24.45, 76.34, 306.77°)
OKLaboklab(36.93% 0.0438 -0.1763)
OKLCHoklch(36.93% 0.182 284)
XYZxyz(8.1015, 4.2400, 30.5223)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1F99 #7C991F
analogous
#1F3F99 #3C1F99 #791F99
triadic
#3C1F99 #993C1F #1F993C
tetradic
#3C1F99 #991F3F #7C991F #1F9979
square
#3C1F99 #991F3F #7C991F #1F9979
split-complementary
#3C1F99 #99791F #3F991F
monochromatic
#140A33 #281566 #3C1F99 #5029CC #7656DD

Accessibility & contrast

On white

11.36
#3C1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3C1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1F99
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1F99#FFFFFF#000000##FFFFFF
##3C1F991.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3c1f99;
/* rgb */ color: rgb(60, 31, 153);
/* oklch */ color: oklch(36.9% 0.182 284.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fb8',
    500: '#3c1f99',
    950: '#000000',
  },
}
SCSS
$custom: #3c1f99;
$custom-light: #7e5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1f99",
  "rgb": {
    "r": 60,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 254.262,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36927,
    "c": 0.18164,
    "h": 284
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#3C1F99
secondary
#A6C054
accent
#E93FC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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