#3F2D96#3F2D96

#3F2D96 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.163 H 283.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3F2D96
RGBrgb(63, 45, 150)
HSLhsl(250, 54%, 38%)
HSVhsv(250, 70%, 59%)
CMYKcmyk(58%, 70%, 0%, 41.2%)
CIE-LABlab(27.12, 37.68, -54.92)
CIE-LCHlch(27.12, 66.60, 304.45°)
OKLaboklab(38.79% 0.0384 -0.158)
OKLCHoklch(38.79% 0.163 283.6)
XYZxyz(8.4916, 5.1350, 29.3919)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D96 #84962D
analogous
#2D4F96 #3F2D96 #732D96
triadic
#3F2D96 #963F2D #2D963F
tetradic
#3F2D96 #962D4F #84962D #2D9673
square
#3F2D96 #962D4F #84962D #2D9673
split-complementary
#3F2D96 #96732D #4F962D
monochromatic
#171138 #2B1F67 #3F2D96 #533CC4 #7D6BD3

Accessibility & contrast

On white

10.36
#3F2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3F2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2D96
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D96#FFFFFF#000000##FFFFFF
##3F2D961.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#12485E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f2d96;
/* rgb */ color: rgb(63, 45, 150);
/* oklch */ color: oklch(38.8% 0.163 283.6);
Tailwind
colors: {
  custom: {
    50: '#7e67b6',
    500: '#3f2d96',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d96;
$custom-light: #7e67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d96",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 250.286,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38793,
    "c": 0.16262,
    "h": 283.6
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#3F2D96
secondary
#ABB965
accent
#DD4BC4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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