#3F1A89#3F1A89

#3F1A89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.167 H 289.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3F1A89
RGBrgb(63, 26, 137)
HSLhsl(260, 68%, 32%)
HSVhsv(260, 81%, 54%)
CMYKcmyk(54%, 81%, 0%, 46.3%)
CIE-LABlab(22.31, 43.80, -54.75)
CIE-LCHlch(22.31, 70.11, 308.66°)
OKLaboklab(35.02% 0.0571 -0.1574)
OKLCHoklch(35.02% 0.167 289.9)
XYZxyz(6.9333, 3.6014, 23.9919)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1A89 #64891A
analogous
#1A2D89 #3F1A89 #771A89
triadic
#3F1A89 #893F1A #1A893F
tetradic
#3F1A89 #891A2D #64891A #1A8977
square
#3F1A89 #891A2D #64891A #1A8977
split-complementary
#3F1A89 #89771A #2D891A
monochromatic
#100622 #271056 #3F1A89 #5724BC #7542DB

Accessibility & contrast

On white

12.21
#3F1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1A89
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1A89#FFFFFF#000000##FFFFFF
##3F1A891.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#233A52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f1a89;
/* rgb */ color: rgb(63, 26, 137);
/* oklch */ color: oklch(35.0% 0.167 289.9);
Tailwind
colors: {
  custom: {
    50: '#7d5cac',
    500: '#3f1a89',
    950: '#000000',
  },
}
SCSS
$custom: #3f1a89;
$custom-light: #7d5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1a89",
  "rgb": {
    "r": 63,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 260,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35016,
    "c": 0.16748,
    "h": 289.9
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#3F1A89
secondary
#94BC43
accent
#EB3DB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3F1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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