#3F2897#3F2897

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

Color values

HEX#3F2897
RGBrgb(63, 40, 151)
HSLhsl(252, 58%, 37%)
HSVhsv(252, 74%, 59%)
CMYKcmyk(58.3%, 73.5%, 0%, 40.8%)
CIE-LABlab(26.18, 40.84, -57.06)
CIE-LCHlch(26.18, 70.17, 305.59°)
OKLaboklab(38.16% 0.0424 -0.1643)
OKLCHoklch(38.16% 0.17 284.5)
XYZxyz(8.3929, 4.8082, 29.7580)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2897 #809728
analogous
#284997 #3F2897 #762897
triadic
#3F2897 #973F28 #28973F
tetradic
#3F2897 #972849 #809728 #289776
square
#3F2897 #972849 #809728 #289776
split-complementary
#3F2897 #977628 #499728
monochromatic
#170E36 #2B1B67 #3F2897 #5335C7 #7B64D6

Accessibility & contrast

On white

10.70
#3F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2897
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2897#FFFFFF#000000##FFFFFF
##3F28971.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.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: #3f2897;
/* rgb */ color: rgb(63, 40, 151);
/* oklch */ color: oklch(38.2% 0.170 284.5);
Tailwind
colors: {
  custom: {
    50: '#7e64b7',
    500: '#3f2897',
    950: '#000000',
  },
}
SCSS
$custom: #3f2897;
$custom-light: #7e64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2897",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 252.432,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38155,
    "c": 0.16969,
    "h": 284.5
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#3F2897
secondary
#A8BC5F
accent
#E146C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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