#3F2591#3F2591

#3F2591 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.166 H 286.2°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3F2591
RGBrgb(63, 37, 145)
HSLhsl(254, 59%, 36%)
HSVhsv(254, 74%, 57%)
CMYKcmyk(56.6%, 74.5%, 0%, 43.1%)
CIE-LABlab(25.03, 40.64, -55.26)
CIE-LCHlch(25.03, 68.60, 306.33°)
OKLaboklab(37.16% 0.0463 -0.159)
OKLCHoklch(37.16% 0.166 286.2)
XYZxyz(7.8208, 4.4238, 27.2244)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2591 #779125
analogous
#254191 #3F2591 #752591
triadic
#3F2591 #913F25 #25913F
tetradic
#3F2591 #912541 #779125 #259175
square
#3F2591 #912541 #779125 #259175
split-complementary
#3F2591 #917525 #419125
monochromatic
#150C2F #2A1960 #3F2591 #5431C2 #795BD5

Accessibility & contrast

On white

11.14
#3F2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2591
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2591#FFFFFF#000000##FFFFFF
##3F25911.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#1A4259
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2591;
/* rgb */ color: rgb(63, 37, 145);
/* oklch */ color: oklch(37.2% 0.166 286.2);
Tailwind
colors: {
  custom: {
    50: '#7e62b2',
    500: '#3f2591',
    950: '#000000',
  },
}
SCSS
$custom: #3f2591;
$custom-light: #7e62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2591",
  "rgb": {
    "r": 63,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 254.444,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.1656,
    "h": 286.2
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#3F2591
secondary
#A2BA58
accent
#E345BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2591

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

Preview Lab → · Contrast checker → · Palette generator →

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