#3F1A87#3F1A87

#3F1A87 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.165 H 290.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#3F1A87
RGBrgb(63, 26, 135)
HSLhsl(260, 68%, 32%)
HSVhsv(260, 81%, 53%)
CMYKcmyk(53.3%, 80.7%, 0%, 47.1%)
CIE-LABlab(22.10, 43.23, -53.83)
CIE-LCHlch(22.10, 69.04, 308.77°)
OKLaboklab(34.81% 0.0578 -0.1547)
OKLCHoklch(34.81% 0.165 290.5)
XYZxyz(6.7912, 3.5445, 23.2433)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A87 #62871A
analogous
#1A2C87 #3F1A87 #761A87
triadic
#3F1A87 #873F1A #1A873F
tetradic
#3F1A87 #871A2C #62871A #1A8776
square
#3F1A87 #871A2C #62871A #1A8776
split-complementary
#3F1A87 #87761A #2C871A
monochromatic
#0F0620 #271054 #3F1A87 #5724BA #7541DA

Accessibility & contrast

On white

12.29
#3F1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A87
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A87#FFFFFF#000000##FFFFFF
##3F1A871.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#253950
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1a87;
/* rgb */ color: rgb(63, 26, 135);
/* oklch */ color: oklch(34.8% 0.165 290.5);
Tailwind
colors: {
  custom: {
    50: '#7d5cab',
    500: '#3f1a87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a87;
$custom-light: #7d5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a87",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 260.367,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34814,
    "c": 0.16517,
    "h": 290.5
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#3F1A87
secondary
#92BA42
accent
#EB3DB0
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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