#3F2072#3F2072

#3F2072 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.133 H 295.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3F2072
RGBrgb(63, 32, 114)
HSLhsl(263, 56%, 29%)
HSVhsv(263, 72%, 45%)
CMYKcmyk(44.7%, 71.9%, 0%, 55.3%)
CIE-LABlab(21.22, 34.14, -41.93)
CIE-LCHlch(21.22, 54.07, 309.16°)
OKLaboklab(33.59% 0.0577 -0.1198)
OKLCHoklch(33.59% 0.133 295.7)
XYZxyz(5.6029, 3.3046, 16.2590)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2072 #537220
analogous
#202A72 #3F2072 #682072
triadic
#3F2072 #723F20 #20723F
tetradic
#3F2072 #72202A #537220 #207268
square
#3F2072 #72202A #537220 #207268
split-complementary
#3F2072 #726820 #2A7220
monochromatic
#0D0718 #251342 #3F2072 #592DA2 #7642CA

Accessibility & contrast

On white

12.64
#3F2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2072
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2072#FFFFFF#000000##FFFFFF
##3F20721.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#313446
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f2072;
/* rgb */ color: rgb(63, 32, 114);
/* oklch */ color: oklch(33.6% 0.133 295.7);
Tailwind
colors: {
  custom: {
    50: '#795e9b',
    500: '#3f2072',
    950: '#000000',
  },
}
SCSS
$custom: #3f2072;
$custom-light: #795e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2072",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 262.683,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33591,
    "c": 0.133,
    "h": 295.7
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#3F2072
secondary
#82A648
accent
#DF48A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3F2072

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

Preview Lab → · Contrast checker → · Palette generator →

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