#3F1C96#3F1C96

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

Color values

HEX#3F1C96
RGBrgb(63, 28, 150)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 81%, 59%)
CMYKcmyk(58%, 81.3%, 0%, 41.2%)
CIE-LABlab(23.96, 46.58, -60.10)
CIE-LCHlch(23.96, 76.04, 307.78°)
OKLaboklab(36.57% 0.0514 -0.1731)
OKLCHoklch(36.57% 0.181 286.6)
XYZxyz(7.9685, 4.0888, 29.2176)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C96 #73961C
analogous
#1C3696 #3F1C96 #7C1C96
triadic
#3F1C96 #963F1C #1C963F
tetradic
#3F1C96 #961C36 #73961C #1C967C
square
#3F1C96 #961C36 #73961C #1C967C
split-complementary
#3F1C96 #967C1C #36961C
monochromatic
#14092F #291262 #3F1C96 #5526CA #784EDE

Accessibility & contrast

On white

11.55
#3F1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1C96
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C96#FFFFFF#000000##FFFFFF
##3F1C961.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#144059
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f1c96;
/* rgb */ color: rgb(63, 28, 150);
/* oklch */ color: oklch(36.6% 0.181 286.6);
Tailwind
colors: {
  custom: {
    50: '#7f5eb6',
    500: '#3f1c96',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c96;
$custom-light: #7f5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c96",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 257.213,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36569,
    "c": 0.18055,
    "h": 286.6
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#3F1C96
secondary
#9FC14D
accent
#EB3CB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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