#3F2896#3F2896

#3F2896 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.168 H 284.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3F2896
RGBrgb(63, 40, 150)
HSLhsl(253, 58%, 37%)
HSVhsv(253, 73%, 59%)
CMYKcmyk(58%, 73.3%, 0%, 41.2%)
CIE-LABlab(26.09, 40.53, -56.61)
CIE-LCHlch(26.09, 69.62, 305.60°)
OKLaboklab(38.06% 0.0426 -0.163)
OKLCHoklch(38.06% 0.168 284.7)
XYZxyz(8.3120, 4.7759, 29.3321)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2896 #7F9628
analogous
#284896 #3F2896 #762896
triadic
#3F2896 #963F28 #28963F
tetradic
#3F2896 #962848 #7F9628 #289676
square
#3F2896 #962848 #7F9628 #289676
split-complementary
#3F2896 #967628 #489628
monochromatic
#160E35 #2B1B66 #3F2896 #5335C6 #7B63D5

Accessibility & contrast

On white

10.74
#3F2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2896
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2896#FFFFFF#000000##FFFFFF
##3F28961.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#12465C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2896;
/* rgb */ color: rgb(63, 40, 150);
/* oklch */ color: oklch(38.1% 0.168 284.7);
Tailwind
colors: {
  custom: {
    50: '#7e64b6',
    500: '#3f2896',
    950: '#000000',
  },
}
SCSS
$custom: #3f2896;
$custom-light: #7e64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2896",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 252.545,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38058,
    "c": 0.16844,
    "h": 284.7
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#3F2896
secondary
#A8BB5F
accent
#E147C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2896

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

Preview Lab → · Contrast checker → · Palette generator →

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