#3F2586#3F2586

#3F2586 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.152 H 288.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3F2586
RGBrgb(63, 37, 134)
HSLhsl(256, 57%, 34%)
HSVhsv(256, 72%, 53%)
CMYKcmyk(53%, 72.4%, 0%, 47.5%)
CIE-LABlab(24.00, 37.29, -50.09)
CIE-LCHlch(24.00, 62.45, 306.67°)
OKLaboklab(36.12% 0.0487 -0.1439)
OKLCHoklch(36.12% 0.152 288.7)
XYZxyz(7.0133, 4.1008, 22.9716)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2586 #6C8625
analogous
#253C86 #3F2586 #6F2586
triadic
#3F2586 #863F25 #25863F
tetradic
#3F2586 #86253C #6C8625 #25866F
square
#3F2586 #86253C #6C8625 #25866F
split-complementary
#3F2586 #866F25 #3C8625
monochromatic
#120B26 #281856 #3F2586 #5632B6 #7655D0

Accessibility & contrast

On white

11.54
#3F2586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F2586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2586
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2586#FFFFFF#000000##FFFFFF
##3F25861.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#253E53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f2586;
/* rgb */ color: rgb(63, 37, 134);
/* oklch */ color: oklch(36.1% 0.152 288.7);
Tailwind
colors: {
  custom: {
    50: '#7c62aa',
    500: '#3f2586',
    950: '#000000',
  },
}
SCSS
$custom: #3f2586;
$custom-light: #7c62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2586",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 256.082,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36121,
    "c": 0.15188,
    "h": 288.7
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#3F2586
secondary
#9AB452
accent
#E048B7
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2586

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

Preview Lab → · Contrast checker → · Palette generator →

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