#3F289A#3F289A

#3F289A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.173 H 283.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#3F289A
RGBrgb(63, 40, 154)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 74%, 60%)
CMYKcmyk(59.1%, 74%, 0%, 39.6%)
CIE-LABlab(26.47, 41.76, -58.43)
CIE-LCHlch(26.47, 71.82, 305.55°)
OKLaboklab(38.45% 0.0417 -0.1683)
OKLCHoklch(38.45% 0.173 283.9)
XYZxyz(8.6396, 4.9069, 31.0574)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F289A #839A28
analogous
#284A9A #3F289A #78289A
triadic
#3F289A #9A3F28 #289A3F
tetradic
#3F289A #9A284A #839A28 #289A78
square
#3F289A #9A284A #839A28 #289A78
split-complementary
#3F289A #9A7828 #4A9A28
monochromatic
#170F39 #2B1B69 #3F289A #5335CA #7C65D7

Accessibility & contrast

On white

10.60
#3F289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F289A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F289A#FFFFFF#000000##FFFFFF
##3F289A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#0A475E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f289a;
/* rgb */ color: rgb(63, 40, 154);
/* oklch */ color: oklch(38.4% 0.173 283.9);
Tailwind
colors: {
  custom: {
    50: '#7f65b9',
    500: '#3f289a',
    950: '#000000',
  },
}
SCSS
$custom: #3f289a;
$custom-light: #7f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f289a",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 252.105,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38445,
    "c": 0.17341,
    "h": 283.9
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#3F289A
secondary
#AABD61
accent
#E246C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F289A

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

Preview Lab → · Contrast checker → · Palette generator →

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