#3F2799#3F2799

#3F2799 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.173 H 284.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#3F2799
RGBrgb(63, 39, 153)
HSLhsl(253, 59%, 38%)
HSVhsv(253, 75%, 60%)
CMYKcmyk(58.8%, 74.5%, 0%, 40%)
CIE-LABlab(26.18, 42.00, -58.30)
CIE-LCHlch(26.18, 71.85, 305.77°)
OKLaboklab(38.21% 0.0428 -0.1679)
OKLCHoklch(38.21% 0.173 284.3)
XYZxyz(8.5234, 4.8072, 30.6096)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2799 #819927
analogous
#274899 #3F2799 #782799
triadic
#3F2799 #993F27 #27993F
tetradic
#3F2799 #992748 #819927 #279978
square
#3F2799 #992748 #819927 #279978
split-complementary
#3F2799 #997827 #489927
monochromatic
#170E37 #2B1B68 #3F2799 #5333CA #7C63D7

Accessibility & contrast

On white

10.71
#3F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2799
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2799#FFFFFF#000000##FFFFFF
##3F27991.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#0D465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2799;
/* rgb */ color: rgb(63, 39, 153);
/* oklch */ color: oklch(38.2% 0.173 284.3);
Tailwind
colors: {
  custom: {
    50: '#7f64b8',
    500: '#3f2799',
    950: '#000000',
  },
}
SCSS
$custom: #3f2799;
$custom-light: #7f64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2799",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 252.632,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.17326,
    "h": 284.3
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#3F2799
secondary
#A9BD5F
accent
#E345C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2799

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

Preview Lab → · Contrast checker → · Palette generator →

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