#3F2B97#3F2B97

#3F2B97 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.166 H 283.9°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#3F2B97
RGBrgb(63, 43, 151)
HSLhsl(251, 56%, 38%)
HSVhsv(251, 72%, 59%)
CMYKcmyk(58.3%, 71.5%, 0%, 40.8%)
CIE-LABlab(26.79, 39.15, -56.07)
CIE-LCHlch(26.79, 68.39, 304.92°)
OKLaboklab(38.59% 0.0399 -0.1614)
OKLCHoklch(38.59% 0.166 283.9)
XYZxyz(8.4980, 5.0184, 29.7930)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2B97 #83972B
analogous
#2B4D97 #3F2B97 #752B97
triadic
#3F2B97 #973F2B #2B973F
tetradic
#3F2B97 #972B4D #83972B #2B9775
square
#3F2B97 #972B4D #83972B #2B9775
split-complementary
#3F2B97 #97752B #4D972B
monochromatic
#171038 #2B1D67 #3F2B97 #5339C7 #7C68D4

Accessibility & contrast

On white

10.48
#3F2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3F2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2B97
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2B97#FFFFFF#000000##FFFFFF
##3F2B971.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#10485E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f2b97;
/* rgb */ color: rgb(63, 43, 151);
/* oklch */ color: oklch(38.6% 0.166 283.9);
Tailwind
colors: {
  custom: {
    50: '#7e66b7',
    500: '#3f2b97',
    950: '#000000',
  },
}
SCSS
$custom: #3f2b97;
$custom-light: #7e66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2b97",
  "rgb": {
    "r": 63,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 251.111,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38586,
    "c": 0.16627,
    "h": 283.9
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#3F2B97
secondary
#AABB63
accent
#DF49C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3F2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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