#3F1381#3F1381

#3F1381 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.165 H 293.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3F1381
RGBrgb(63, 19, 129)
HSLhsl(264, 74%, 29%)
HSVhsv(264, 85%, 51%)
CMYKcmyk(51.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(20.47, 44.56, -52.74)
CIE-LCHlch(20.47, 69.04, 310.19°)
OKLaboklab(33.5% 0.0648 -0.1515)
OKLCHoklch(33.5% 0.165 293.2)
XYZxyz(6.2441, 3.1073, 21.0354)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1381 #558113
analogous
#131E81 #3F1381 #761381
triadic
#3F1381 #813F13 #13813F
tetradic
#3F1381 #81131E #558113 #138176
square
#3F1381 #81131E #558113 #138176
split-complementary
#3F1381 #817613 #1E8113
monochromatic
#0D041B #250B4C #3F1381 #591BB6 #752EE0

Accessibility & contrast

On white

12.95
#3F1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3F1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1381
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1381#FFFFFF#000000##FFFFFF
##3F13811.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#2A344C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f1381;
/* rgb */ color: rgb(63, 19, 129);
/* oklch */ color: oklch(33.5% 0.165 293.2);
Tailwind
colors: {
  custom: {
    50: '#7c58a7',
    500: '#3f1381',
    950: '#000000',
  },
}
SCSS
$custom: #3f1381;
$custom-light: #7c58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1381",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 264,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33496,
    "c": 0.16476,
    "h": 293.2
  },
  "luminance": 0.03107
}

Semantic roles & 50–950 ramp

primary
#3F1381
secondary
#84B63A
accent
#F137A7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1381

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

Preview Lab → · Contrast checker → · Palette generator →

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