#3F2A84#3F2A84

#3F2A84 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.143 H 287.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3F2A84
RGBrgb(63, 42, 132)
HSLhsl(254, 52%, 34%)
HSVhsv(254, 68%, 52%)
CMYKcmyk(52.3%, 68.2%, 0%, 48.2%)
CIE-LABlab(24.88, 33.77, -47.40)
CIE-LCHlch(24.88, 58.20, 305.47°)
OKLaboklab(36.7% 0.044 -0.136)
OKLCHoklch(36.7% 0.143 287.9)
XYZxyz(7.0415, 4.3783, 22.2994)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A84 #6F842A
analogous
#2A4284 #3F2A84 #6C2A84
triadic
#3F2A84 #843F2A #2A843F
tetradic
#3F2A84 #842A42 #6F842A #2A846C
square
#3F2A84 #842A42 #6F842A #2A846C
split-complementary
#3F2A84 #846C2A #42842A
monochromatic
#130C27 #291B56 #3F2A84 #5539B2 #775DCB

Accessibility & contrast

On white

11.20
#3F2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A84
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A84#FFFFFF#000000##FFFFFF
##3F2A841.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#264053
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2a84;
/* rgb */ color: rgb(63, 42, 132);
/* oklch */ color: oklch(36.7% 0.143 287.9);
Tailwind
colors: {
  custom: {
    50: '#7b65a9',
    500: '#3f2a84',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a84;
$custom-light: #7b65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a84",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 254,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36699,
    "c": 0.14291,
    "h": 287.9
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#3F2A84
secondary
#9CB159
accent
#DB4DBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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