#3F2997#3F2997

#3F2997 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.169 H 284.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#3F2997
RGBrgb(63, 41, 151)
HSLhsl(252, 57%, 38%)
HSVhsv(252, 73%, 59%)
CMYKcmyk(58.3%, 72.8%, 0%, 40.8%)
CIE-LABlab(26.38, 40.28, -56.74)
CIE-LCHlch(26.38, 69.58, 305.37°)
OKLaboklab(38.3% 0.0416 -0.1634)
OKLCHoklch(38.3% 0.169 284.3)
XYZxyz(8.4270, 4.8765, 29.7694)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2997 #819729
analogous
#294A97 #3F2997 #762997
triadic
#3F2997 #973F29 #29973F
tetradic
#3F2997 #97294A #819729 #299776
square
#3F2997 #97294A #819729 #299776
split-complementary
#3F2997 #977629 #4A9729
monochromatic
#170F37 #2B1C67 #3F2997 #5336C7 #7C65D5

Accessibility & contrast

On white

10.63
#3F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3F2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2997
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2997#FFFFFF#000000##FFFFFF
##3F29971.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#10475D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2997;
/* rgb */ color: rgb(63, 41, 151);
/* oklch */ color: oklch(38.3% 0.169 284.3);
Tailwind
colors: {
  custom: {
    50: '#7e65b7',
    500: '#3f2997',
    950: '#000000',
  },
}
SCSS
$custom: #3f2997;
$custom-light: #7e65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2997",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 252,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38296,
    "c": 0.16857,
    "h": 284.3
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#3F2997
secondary
#A9BB61
accent
#E147C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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