#3F1C87#3F1C87

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

Color values

HEX#3F1C87
RGBrgb(63, 28, 135)
HSLhsl(260, 66%, 32%)
HSVhsv(260, 79%, 53%)
CMYKcmyk(53.3%, 79.3%, 0%, 47.1%)
CIE-LABlab(22.43, 42.30, -53.30)
CIE-LCHlch(22.43, 68.04, 308.44°)
OKLaboklab(35.04% 0.0563 -0.1532)
OKLCHoklch(35.04% 0.163 290.2)
XYZxyz(6.8371, 3.6362, 23.2586)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1C87 #64871C
analogous
#1C2F87 #3F1C87 #751C87
triadic
#3F1C87 #873F1C #1C873F
tetradic
#3F1C87 #871C2F #64871C #1C8775
square
#3F1C87 #871C2F #64871C #1C8775
split-complementary
#3F1C87 #87751C #2F871C
monochromatic
#100722 #271154 #3F1C87 #5727BA #7545D8

Accessibility & contrast

On white

12.16
#3F1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F1C87
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1C87#FFFFFF#000000##FFFFFF
##3F1C871.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#253A51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f1c87;
/* rgb */ color: rgb(63, 28, 135);
/* oklch */ color: oklch(35.0% 0.163 290.2);
Tailwind
colors: {
  custom: {
    50: '#7d5dab',
    500: '#3f1c87',
    950: '#000000',
  },
}
SCSS
$custom: #3f1c87;
$custom-light: #7d5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1c87",
  "rgb": {
    "r": 63,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 259.626,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.16319,
    "h": 290.2
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#3F1C87
secondary
#94BA45
accent
#E93FB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3F1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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