#3F1A97#3F1A97

#3F1A97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.183 H 286.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3F1A97
RGBrgb(63, 26, 151)
HSLhsl(258, 71%, 35%)
HSVhsv(258, 83%, 59%)
CMYKcmyk(58.3%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.77, 47.74, -61.04)
CIE-LCHlch(23.77, 77.49, 308.03°)
OKLaboklab(36.47% 0.0523 -0.1758)
OKLCHoklch(36.47% 0.183 286.6)
XYZxyz(8.0035, 4.0295, 29.6282)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A97 #72971A
analogous
#1A3497 #3F1A97 #7E1A97
triadic
#3F1A97 #973F1A #1A973F
tetradic
#3F1A97 #971A34 #72971A #1A977E
square
#3F1A97 #971A34 #72971A #1A977E
split-complementary
#3F1A97 #977E1A #34971A
monochromatic
#13082F #291163 #3F1A97 #5523CB #774BE0

Accessibility & contrast

On white

11.63
#3F1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A97
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A97#FFFFFF#000000##FFFFFF
##3F1A971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#13405A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f1a97;
/* rgb */ color: rgb(63, 26, 151);
/* oklch */ color: oklch(36.5% 0.183 286.6);
Tailwind
colors: {
  custom: {
    50: '#7f5db7',
    500: '#3f1a97',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a97;
$custom-light: #7f5db7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a97",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 257.76,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36466,
    "c": 0.18341,
    "h": 286.6
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3F1A97
secondary
#9FC24B
accent
#ED3AB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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