#3F2071#3F2071

#3F2071 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.132 H 296.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3F2071
RGBrgb(63, 32, 113)
HSLhsl(263, 56%, 28%)
HSVhsv(263, 72%, 44%)
CMYKcmyk(44.2%, 71.7%, 0%, 55.7%)
CIE-LABlab(21.14, 33.85, -41.42)
CIE-LCHlch(21.14, 53.49, 309.26°)
OKLaboklab(33.5% 0.0578 -0.1184)
OKLCHoklch(33.5% 0.132 296)
XYZxyz(5.5463, 3.2819, 15.9608)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2071 #527120
analogous
#202971 #3F2071 #672071
triadic
#3F2071 #713F20 #20713F
tetradic
#3F2071 #712029 #527120 #207167
square
#3F2071 #712029 #527120 #207167
split-complementary
#3F2071 #716720 #297120
monochromatic
#0D0718 #241241 #3F2071 #5A2EA1 #7642C9

Accessibility & contrast

On white

12.68
#3F2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2071
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2071#FFFFFF#000000##FFFFFF
##3F20711.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00326F
Tritanopia (blue-blind)
#323446
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f2071;
/* rgb */ color: rgb(63, 32, 113);
/* oklch */ color: oklch(33.5% 0.132 296.0);
Tailwind
colors: {
  custom: {
    50: '#795e9a',
    500: '#3f2071',
    950: '#000000',
  },
}
SCSS
$custom: #3f2071;
$custom-light: #795e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2071",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 262.963,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33504,
    "c": 0.13173,
    "h": 296
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#3F2071
secondary
#81A548
accent
#DF49A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F2071

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

Preview Lab → · Contrast checker → · Palette generator →

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