#3F2587#3F2587

#3F2587 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.153 H 288.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#3F2587
RGBrgb(63, 37, 135)
HSLhsl(256, 57%, 34%)
HSVhsv(256, 73%, 53%)
CMYKcmyk(53.3%, 72.6%, 0%, 47.1%)
CIE-LABlab(24.09, 37.60, -50.57)
CIE-LCHlch(24.09, 63.02, 306.63°)
OKLaboklab(36.21% 0.0485 -0.1453)
OKLCHoklch(36.21% 0.153 288.5)
XYZxyz(7.0834, 4.1288, 23.3407)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2587 #6D8725
analogous
#253C87 #3F2587 #702587
triadic
#3F2587 #873F25 #25873F
tetradic
#3F2587 #87253C #6D8725 #258770
square
#3F2587 #87253C #6D8725 #258770
split-complementary
#3F2587 #877025 #3C8725
monochromatic
#120B27 #291857 #3F2587 #5532B7 #7656D1

Accessibility & contrast

On white

11.50
#3F2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3F2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2587
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2587#FFFFFF#000000##FFFFFF
##3F25871.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#243F53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f2587;
/* rgb */ color: rgb(63, 37, 135);
/* oklch */ color: oklch(36.2% 0.153 288.5);
Tailwind
colors: {
  custom: {
    50: '#7c62ab',
    500: '#3f2587',
    950: '#000000',
  },
}
SCSS
$custom: #3f2587;
$custom-light: #7c62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2587",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 255.918,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36214,
    "c": 0.15314,
    "h": 288.5
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#3F2587
secondary
#9BB553
accent
#E048B8
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3F2587

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

Preview Lab → · Contrast checker → · Palette generator →

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