#3F1C97#3F1C97

#3F1C97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.182 H 286.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3F1C97
RGBrgb(63, 28, 151)
HSLhsl(257, 69%, 35%)
HSVhsv(257, 81%, 59%)
CMYKcmyk(58.3%, 81.5%, 0%, 40.8%)
CIE-LABlab(24.07, 46.87, -60.54)
CIE-LCHlch(24.07, 76.56, 307.74°)
OKLaboklab(36.67% 0.0511 -0.1744)
OKLCHoklch(36.67% 0.182 286.3)
XYZxyz(8.0494, 4.1212, 29.6435)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C97 #74971C
analogous
#1C3797 #3F1C97 #7C1C97
triadic
#3F1C97 #973F1C #1C973F
tetradic
#3F1C97 #971C37 #74971C #1C977C
square
#3F1C97 #971C37 #74971C #1C977C
split-complementary
#3F1C97 #977C1C #37971C
monochromatic
#140930 #291263 #3F1C97 #5526CB #784FDE

Accessibility & contrast

On white

11.51
#3F1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1C97
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C97#FFFFFF#000000##FFFFFF
##3F1C971.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f1c97;
/* rgb */ color: rgb(63, 28, 151);
/* oklch */ color: oklch(36.7% 0.182 286.3);
Tailwind
colors: {
  custom: {
    50: '#7f5eb7',
    500: '#3f1c97',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c97;
$custom-light: #7f5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c97",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 257.073,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36673,
    "c": 0.1817,
    "h": 286.3
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#3F1C97
secondary
#A0C14E
accent
#EC3CBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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