#3F1C9D#3F1C9D

#3F1C9D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.189 H 285.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#3F1C9D
RGBrgb(63, 28, 157)
HSLhsl(256, 70%, 36%)
HSVhsv(256, 82%, 62%)
CMYKcmyk(59.9%, 82.2%, 0%, 38.4%)
CIE-LABlab(24.71, 48.57, -63.17)
CIE-LCHlch(24.71, 79.68, 307.56°)
OKLaboklab(37.3% 0.0491 -0.182)
OKLCHoklch(37.3% 0.189 285.1)
XYZxyz(8.5491, 4.3211, 32.2753)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C9D #7A9D1C
analogous
#1C3A9D #3F1C9D #801C9D
triadic
#3F1C9D #9D3F1C #1C9D3F
tetradic
#3F1C9D #9D1C3A #7A9D1C #1C9D80
square
#3F1C9D #9D1C3A #7A9D1C #1C9D80
split-complementary
#3F1C9D #9D801C #3A9D1C
monochromatic
#150935 #2A1369 #3F1C9D #5425D1 #7953E0

Accessibility & contrast

On white

11.26
#3F1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1C9D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C9D#FFFFFF#000000##FFFFFF
##3F1C9D1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#04435E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f1c9d;
/* rgb */ color: rgb(63, 28, 157);
/* oklch */ color: oklch(37.3% 0.189 285.1);
Tailwind
colors: {
  custom: {
    50: '#805ebb',
    500: '#3f1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c9d;
$custom-light: #805ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c9d",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 256.279,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.18853,
    "h": 285.1
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#3F1C9D
secondary
#A4C351
accent
#ED3BBC
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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