#3F1F8F#3F1F8F

#3F1F8F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.170 H 287.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#3F1F8F
RGBrgb(63, 31, 143)
HSLhsl(257, 64%, 34%)
HSVhsv(257, 78%, 56%)
CMYKcmyk(55.9%, 78.3%, 0%, 43.9%)
CIE-LABlab(23.74, 43.15, -56.14)
CIE-LCHlch(23.74, 70.81, 307.54°)
OKLaboklab(36.2% 0.0516 -0.1615)
OKLCHoklch(36.2% 0.17 287.7)
XYZxyz(7.4963, 4.0195, 26.3621)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F8F #6F8F1F
analogous
#1F378F #3F1F8F #771F8F
triadic
#3F1F8F #8F3F1F #1F8F3F
tetradic
#3F1F8F #8F1F37 #6F8F1F #1F8F77
square
#3F1F8F #8F1F37 #6F8F1F #1F8F77
split-complementary
#3F1F8F #8F771F #378F1F
monochromatic
#13092A #29145D #3F1F8F #552AC1 #774FD9

Accessibility & contrast

On white

11.64
#3F1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F8F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F8F#FFFFFF#000000##FFFFFF
##3F1F8F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#1D3F56
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f1f8f;
/* rgb */ color: rgb(63, 31, 143);
/* oklch */ color: oklch(36.2% 0.170 287.7);
Tailwind
colors: {
  custom: {
    50: '#7e5fb1',
    500: '#3f1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f8f;
$custom-light: #7e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f8f",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 257.143,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36195,
    "c": 0.16957,
    "h": 287.7
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#3F1F8F
secondary
#9CBC4E
accent
#E740B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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