#3F1F82#3F1F82

#3F1F82 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.154 H 291.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#3F1F82
RGBrgb(63, 31, 130)
HSLhsl(259, 61%, 32%)
HSVhsv(259, 76%, 51%)
CMYKcmyk(51.5%, 76.2%, 0%, 49%)
CIE-LABlab(22.47, 39.35, -50.08)
CIE-LCHlch(22.47, 63.69, 308.16°)
OKLaboklab(34.92% 0.0552 -0.1438)
OKLCHoklch(34.92% 0.154 291)
XYZxyz(6.5680, 3.6482, 21.4729)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F82 #62821F
analogous
#1F3182 #3F1F82 #711F82
triadic
#3F1F82 #823F1F #1F823F
tetradic
#3F1F82 #821F31 #62821F #1F8271
square
#3F1F82 #821F31 #62821F #1F8271
split-complementary
#3F1F82 #82711F #31821F
monochromatic
#0F071F #271351 #3F1F82 #572BB3 #7548D3

Accessibility & contrast

On white

12.14
#3F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1F82
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F82#FFFFFF#000000##FFFFFF
##3F1F821.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#283A4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1f82;
/* rgb */ color: rgb(63, 31, 130);
/* oklch */ color: oklch(34.9% 0.154 291.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ea7',
    500: '#3f1f82',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f82;
$custom-light: #7c5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f82",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 259.394,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34923,
    "c": 0.154,
    "h": 291
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#3F1F82
secondary
#92B548
accent
#E543B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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