#3F2A96#3F2A96

#3F2A96 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.166 H 284.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#3F2A96
RGBrgb(63, 42, 150)
HSLhsl(252, 56%, 38%)
HSVhsv(252, 72%, 59%)
CMYKcmyk(58%, 72%, 0%, 41.2%)
CIE-LABlab(26.49, 39.41, -55.95)
CIE-LCHlch(26.49, 68.43, 305.16°)
OKLaboklab(38.35% 0.041 -0.161)
OKLCHoklch(38.35% 0.166 284.3)
XYZxyz(8.3812, 4.9142, 29.3551)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A96 #81962A
analogous
#2A4B96 #3F2A96 #752A96
triadic
#3F2A96 #963F2A #2A963F
tetradic
#3F2A96 #962A4B #81962A #2A9675
square
#3F2A96 #962A4B #81962A #2A9675
split-complementary
#3F2A96 #96752A #4B962A
monochromatic
#170F36 #2B1D66 #3F2A96 #5337C6 #7C66D4

Accessibility & contrast

On white

10.59
#3F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2A96
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A96#FFFFFF#000000##FFFFFF
##3F2A961.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#12475D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f2a96;
/* rgb */ color: rgb(63, 42, 150);
/* oklch */ color: oklch(38.3% 0.166 284.3);
Tailwind
colors: {
  custom: {
    50: '#7e66b6',
    500: '#3f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a96;
$custom-light: #7e66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a96",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 251.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38345,
    "c": 0.16617,
    "h": 284.3
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#3F2A96
secondary
#A9BA61
accent
#E048C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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