#3F1E87#3F1E87

#3F1E87 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.161 H 289.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3F1E87
RGBrgb(63, 30, 135)
HSLhsl(259, 64%, 32%)
HSVhsv(259, 78%, 53%)
CMYKcmyk(53.3%, 77.8%, 0%, 47.1%)
CIE-LABlab(22.77, 41.32, -52.73)
CIE-LCHlch(22.77, 66.99, 308.08°)
OKLaboklab(35.28% 0.0547 -0.1516)
OKLCHoklch(35.28% 0.161 289.8)
XYZxyz(6.8861, 3.7343, 23.2749)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1E87 #66871E
analogous
#1E3287 #3F1E87 #731E87
triadic
#3F1E87 #873F1E #1E873F
tetradic
#3F1E87 #871E32 #66871E #1E8773
square
#3F1E87 #871E32 #66871E #1E8773
split-complementary
#3F1E87 #87731E #32871E
monochromatic
#100823 #281355 #3F1E87 #5629B9 #7549D7

Accessibility & contrast

On white

12.02
#3F1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1E87
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1E87#FFFFFF#000000##FFFFFF
##3F1E871.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#253B51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1e87;
/* rgb */ color: rgb(63, 30, 135);
/* oklch */ color: oklch(35.3% 0.161 289.8);
Tailwind
colors: {
  custom: {
    50: '#7c5eab',
    500: '#3f1e87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1e87;
$custom-light: #7c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1e87",
  "rgb": {
    "r": 63,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 258.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35281,
    "c": 0.16111,
    "h": 289.8
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#3F1E87
secondary
#95B948
accent
#E741B3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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