#3F1871#3F1871

#3F1871 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 297.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#3F1871
RGBrgb(63, 24, 113)
HSLhsl(266, 65%, 27%)
HSVhsv(266, 79%, 44%)
CMYKcmyk(44.2%, 78.8%, 0%, 55.7%)
CIE-LABlab(19.65, 38.04, -43.85)
CIE-LCHlch(19.65, 58.05, 310.94°)
OKLaboklab(32.45% 0.0661 -0.1255)
OKLCHoklch(32.45% 0.142 297.8)
XYZxyz(5.3564, 2.9022, 15.8976)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1871 #4A7118
analogous
#181E71 #3F1871 #6C1871
triadic
#3F1871 #713F18 #18713F
tetradic
#3F1871 #71181E #4A7118 #18716C
square
#3F1871 #71181E #4A7118 #18716C
split-complementary
#3F1871 #716C18 #1E7118
monochromatic
#0E0519 #230D3F #3F1871 #5B23A3 #7830D3

Accessibility & contrast

On white

13.29
#3F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3F1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1871
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1871#FFFFFF#000000##FFFFFF
##3F18711.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#322F43
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3f1871;
/* rgb */ color: rgb(63, 24, 113);
/* oklch */ color: oklch(32.4% 0.142 297.8);
Tailwind
colors: {
  custom: {
    50: '#7a599b',
    500: '#3f1871',
    950: '#000000',
  },
}
SCSS
$custom: #3f1871;
$custom-light: #7a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1871",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 266.292,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32446,
    "c": 0.14182,
    "h": 297.8
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#3F1871
secondary
#79A63E
accent
#E8409E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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