#3F2A99#3F2A99

#3F2A99 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.170 H 283.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3F2A99
RGBrgb(63, 42, 153)
HSLhsl(251, 57%, 38%)
HSVhsv(251, 73%, 60%)
CMYKcmyk(58.8%, 72.5%, 0%, 40%)
CIE-LABlab(26.77, 40.34, -57.33)
CIE-LCHlch(26.77, 70.10, 305.14°)
OKLaboklab(38.63% 0.0403 -0.1651)
OKLCHoklch(38.63% 0.17 283.7)
XYZxyz(8.6259, 5.0121, 30.6437)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A99 #84992A
analogous
#2A4D99 #3F2A99 #762A99
triadic
#3F2A99 #993F2A #2A993F
tetradic
#3F2A99 #992A4D #84992A #2A9976
square
#3F2A99 #992A4D #84992A #2A9976
split-complementary
#3F2A99 #99762A #4D992A
monochromatic
#171039 #2B1D69 #3F2A99 #5338C8 #7D68D6

Accessibility & contrast

On white

10.49
#3F2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3F2A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A99
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A99#FFFFFF#000000##FFFFFF
##3F2A991.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#0C485E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f2a99;
/* rgb */ color: rgb(63, 42, 153);
/* oklch */ color: oklch(38.6% 0.170 283.7);
Tailwind
colors: {
  custom: {
    50: '#7f66b8',
    500: '#3f2a99',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a99;
$custom-light: #7f66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a99",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 251.351,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.16994,
    "h": 283.7
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#3F2A99
secondary
#ABBC63
accent
#E048C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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