#3F2797#3F2797

#3F2797 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.171 H 284.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3F2797
RGBrgb(63, 39, 151)
HSLhsl(253, 59%, 37%)
HSVhsv(253, 74%, 59%)
CMYKcmyk(58.3%, 74.2%, 0%, 40.8%)
CIE-LABlab(25.99, 41.38, -57.39)
CIE-LCHlch(25.99, 70.75, 305.80°)
OKLaboklab(38.02% 0.0432 -0.1652)
OKLCHoklch(38.02% 0.171 284.7)
XYZxyz(8.3596, 4.7417, 29.7469)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2797 #7F9727
analogous
#274797 #3F2797 #772797
triadic
#3F2797 #973F27 #27973F
tetradic
#3F2797 #972747 #7F9727 #279777
square
#3F2797 #972747 #7F9727 #279777
split-complementary
#3F2797 #977727 #479727
monochromatic
#160E36 #2B1A66 #3F2797 #5334C8 #7B62D6

Accessibility & contrast

On white

10.78
#3F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3F2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2797
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2797#FFFFFF#000000##FFFFFF
##3F27971.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#11465D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2797;
/* rgb */ color: rgb(63, 39, 151);
/* oklch */ color: oklch(38.0% 0.171 284.7);
Tailwind
colors: {
  custom: {
    50: '#7e64b7',
    500: '#3f2797',
    950: '#000000',
  },
}
SCSS
$custom: #3f2797;
$custom-light: #7e64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2797",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 252.857,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.1708,
    "h": 284.7
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#3F2797
secondary
#A8BC5E
accent
#E246C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F2797

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

Preview Lab → · Contrast checker → · Palette generator →

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