#3F2789#3F2789

#3F2789 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.153 H 287.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3F2789
RGBrgb(63, 39, 137)
HSLhsl(255, 56%, 35%)
HSVhsv(255, 72%, 54%)
CMYKcmyk(54%, 71.5%, 0%, 46.3%)
CIE-LABlab(24.68, 37.08, -50.86)
CIE-LCHlch(24.68, 62.94, 306.09°)
OKLaboklab(36.69% 0.0462 -0.1461)
OKLCHoklch(36.69% 0.153 287.5)
XYZxyz(7.2894, 4.3136, 24.1106)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2789 #718927
analogous
#274089 #3F2789 #702789
triadic
#3F2789 #893F27 #27893F
tetradic
#3F2789 #892740 #718927 #278970
square
#3F2789 #892740 #718927 #278970
split-complementary
#3F2789 #897027 #408927
monochromatic
#130C2A #291959 #3F2789 #5535B9 #775AD0

Accessibility & contrast

On white

11.27
#3F2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2789
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2789#FFFFFF#000000##FFFFFF
##3F27891.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#224055
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2789;
/* rgb */ color: rgb(63, 39, 137);
/* oklch */ color: oklch(36.7% 0.153 287.5);
Tailwind
colors: {
  custom: {
    50: '#7c63ac',
    500: '#3f2789',
    950: '#000000',
  },
}
SCSS
$custom: #3f2789;
$custom-light: #7c63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2789",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 254.694,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3669,
    "c": 0.15323,
    "h": 287.5
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#3F2789
secondary
#9EB557
accent
#DF49BA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F2789

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

Preview Lab → · Contrast checker → · Palette generator →

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