#3F1FA7#3F1FA7

#3F1FA7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.197 H 282.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3F1FA7
RGBrgb(63, 31, 167)
HSLhsl(254, 69%, 39%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(62.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(26.23, 50.10, -66.73)
CIE-LCHlch(26.23, 83.44, 306.90°)
OKLaboklab(38.68% 0.044 -0.1924)
OKLCHoklch(38.68% 0.197 282.9)
XYZxyz(9.5128, 4.8261, 36.9820)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1FA7 #87A71F
analogous
#1F43A7 #3F1FA7 #831FA7
triadic
#3F1FA7 #A73F1F #1FA73F
tetradic
#3F1FA7 #A71F43 #87A71F #1FA783
square
#3F1FA7 #A71F43 #87A71F #1FA783
split-complementary
#3F1FA7 #A7831F #43A71F
monochromatic
#180C40 #2C1573 #3F1FA7 #542BD8 #7E5FE1

Accessibility & contrast

On white

10.68
#3F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3F1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1FA7
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1FA7#FFFFFF#000000##FFFFFF
##3F1FA71.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f1fa7;
/* rgb */ color: rgb(63, 31, 167);
/* oklch */ color: oklch(38.7% 0.197 282.9);
Tailwind
colors: {
  custom: {
    50: '#8260c2',
    500: '#3f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3f1fa7;
$custom-light: #8260c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1fa7",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 254.118,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.19741,
    "h": 282.9
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#3F1FA7
secondary
#ADC65C
accent
#EC3CC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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