#3F2AA4#3F2AA4

#3F2AA4 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.184 H 281.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#3F2AA4
RGBrgb(63, 42, 164)
HSLhsl(250, 59%, 40%)
HSVhsv(250, 74%, 64%)
CMYKcmyk(61.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(27.82, 43.76, -62.29)
CIE-LCHlch(27.82, 76.13, 305.09°)
OKLaboklab(39.7% 0.0379 -0.1796)
OKLCHoklch(39.7% 0.184 281.9)
XYZxyz(9.5766, 5.3923, 35.6509)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2AA4 #8FA42A
analogous
#2A52A4 #3F2AA4 #7C2AA4
triadic
#3F2AA4 #A43F2A #2AA43F
tetradic
#3F2AA4 #A42A52 #8FA42A #2AA47C
square
#3F2AA4 #A42A52 #8FA42A #2AA47C
split-complementary
#3F2AA4 #A47C2A #52A42A
monochromatic
#1A1143 #2C1E73 #3F2AA4 #563ECD #816EDA

Accessibility & contrast

On white

10.10
#3F2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3F2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2AA4
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2AA4#FFFFFF#000000##FFFFFF
##3F2AA41.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f2aa4;
/* rgb */ color: rgb(63, 42, 164);
/* oklch */ color: oklch(39.7% 0.184 281.9);
Tailwind
colors: {
  custom: {
    50: '#8166c0',
    500: '#3f2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #3f2aa4;
$custom-light: #8166c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2aa4",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 250.328,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.18356,
    "h": 281.9
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#3F2AA4
secondary
#B2C169
accent
#E245C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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