#3F2271#3F2271

#3F2271 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.129 H 295.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#3F2271
RGBrgb(63, 34, 113)
HSLhsl(262, 54%, 29%)
HSVhsv(262, 70%, 44%)
CMYKcmyk(44.2%, 69.9%, 0%, 55.7%)
CIE-LABlab(21.55, 32.71, -40.75)
CIE-LCHlch(21.55, 52.25, 308.76°)
OKLaboklab(33.8% 0.0556 -0.1164)
OKLCHoklch(33.8% 0.129 295.5)
XYZxyz(5.6018, 3.3929, 15.9793)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2271 #547122
analogous
#222D71 #3F2271 #672271
triadic
#3F2271 #713F22 #22713F
tetradic
#3F2271 #71222D #547122 #227167
square
#3F2271 #71222D #547122 #227167
split-complementary
#3F2271 #716722 #2D7122
monochromatic
#0D0718 #251442 #3F2271 #5930A0 #7646C7

Accessibility & contrast

On white

12.51
#3F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2271
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2271#FFFFFF#000000##FFFFFF
##3F22711.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#323546
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f2271;
/* rgb */ color: rgb(63, 34, 113);
/* oklch */ color: oklch(33.8% 0.129 295.5);
Tailwind
colors: {
  custom: {
    50: '#795f9a',
    500: '#3f2271',
    950: '#000000',
  },
}
SCSS
$custom: #3f2271;
$custom-light: #795f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2271",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 262.025,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33801,
    "c": 0.12897,
    "h": 295.5
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#3F2271
secondary
#83A44A
accent
#DD4BA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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