#3F1F85#3F1F85

#3F1F85 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 290.2°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3F1F85
RGBrgb(63, 31, 133)
HSLhsl(259, 62%, 32%)
HSVhsv(259, 77%, 52%)
CMYKcmyk(52.6%, 76.7%, 0%, 47.8%)
CIE-LABlab(22.76, 40.23, -51.50)
CIE-LCHlch(22.76, 65.35, 307.99°)
OKLaboklab(35.21% 0.0544 -0.148)
OKLCHoklch(35.21% 0.158 290.2)
XYZxyz(6.7723, 3.7299, 22.5489)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1F85 #65851F
analogous
#1F3285 #3F1F85 #721F85
triadic
#3F1F85 #853F1F #1F853F
tetradic
#3F1F85 #851F32 #65851F #1F8572
square
#3F1F85 #851F32 #65851F #1F8572
split-complementary
#3F1F85 #85721F #32851F
monochromatic
#100822 #271353 #3F1F85 #572BB7 #754AD5

Accessibility & contrast

On white

12.03
#3F1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1F85
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1F85#FFFFFF#000000##FFFFFF
##3F1F851.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#263B50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1f85;
/* rgb */ color: rgb(63, 31, 133);
/* oklch */ color: oklch(35.2% 0.158 290.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ea9',
    500: '#3f1f85',
    950: '#000000',
  },
}
SCSS
$custom: #3f1f85;
$custom-light: #7c5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1f85",
  "rgb": {
    "r": 63,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 258.824,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.15763,
    "h": 290.2
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#3F1F85
secondary
#95B749
accent
#E543B2
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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