#3F2A87#3F2A87

#3F2A87 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.147 H 287.3°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3F2A87
RGBrgb(63, 42, 135)
HSLhsl(254, 53%, 35%)
HSVhsv(254, 69%, 53%)
CMYKcmyk(53.3%, 68.9%, 0%, 47.1%)
CIE-LABlab(25.14, 34.71, -48.86)
CIE-LCHlch(25.14, 59.93, 305.39°)
OKLaboklab(36.96% 0.0436 -0.1402)
OKLCHoklch(36.96% 0.147 287.3)
XYZxyz(7.2497, 4.4616, 23.3961)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A87 #72872A
analogous
#2A4487 #3F2A87 #6D2A87
triadic
#3F2A87 #873F2A #2A873F
tetradic
#3F2A87 #872A44 #72872A #2A876D
square
#3F2A87 #872A44 #72872A #2A876D
split-complementary
#3F2A87 #876D2A #44872A
monochromatic
#130D2A #291B58 #3F2A87 #5539B6 #775ECD

Accessibility & contrast

On white

11.10
#3F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A87
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A87#FFFFFF#000000##FFFFFF
##3F2A871.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#244155
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2a87;
/* rgb */ color: rgb(63, 42, 135);
/* oklch */ color: oklch(37.0% 0.147 287.3);
Tailwind
colors: {
  custom: {
    50: '#7b65ab',
    500: '#3f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a87;
$custom-light: #7b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a87",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 253.548,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36965,
    "c": 0.14686,
    "h": 287.3
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#3F2A87
secondary
#9FB35A
accent
#DC4CBB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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