#3F2A86#3F2A86

#3F2A86 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.146 H 287.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3F2A86
RGBrgb(63, 42, 134)
HSLhsl(254, 52%, 35%)
HSVhsv(254, 69%, 53%)
CMYKcmyk(53%, 68.7%, 0%, 47.5%)
CIE-LABlab(25.06, 34.40, -48.37)
CIE-LCHlch(25.06, 59.35, 305.42°)
OKLaboklab(36.88% 0.0438 -0.1388)
OKLCHoklch(36.88% 0.146 287.5)
XYZxyz(7.1797, 4.4336, 23.0271)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A86 #71862A
analogous
#2A4386 #3F2A86 #6D2A86
triadic
#3F2A86 #863F2A #2A863F
tetradic
#3F2A86 #862A43 #71862A #2A866D
square
#3F2A86 #862A43 #71862A #2A866D
split-complementary
#3F2A86 #866D2A #43862A
monochromatic
#130D29 #291B57 #3F2A86 #5539B5 #775ECD

Accessibility & contrast

On white

11.13
#3F2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2A86
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A86#FFFFFF#000000##FFFFFF
##3F2A861.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#244154
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2a86;
/* rgb */ color: rgb(63, 42, 134);
/* oklch */ color: oklch(36.9% 0.146 287.5);
Tailwind
colors: {
  custom: {
    50: '#7b65aa',
    500: '#3f2a86',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a86;
$custom-light: #7b65aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a86",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 253.696,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.14555,
    "h": 287.5
  },
  "luminance": 0.04434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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