#3F2397#3F2397

#3F2397 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.175 H 285.3°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3F2397
RGBrgb(63, 35, 151)
HSLhsl(254, 62%, 36%)
HSVhsv(254, 77%, 59%)
CMYKcmyk(58.3%, 76.8%, 0%, 40.8%)
CIE-LABlab(25.24, 43.50, -58.62)
CIE-LCHlch(25.24, 72.99, 306.58°)
OKLaboklab(37.49% 0.0463 -0.1688)
OKLCHoklch(37.49% 0.175 285.3)
XYZxyz(8.2352, 4.4927, 29.7054)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2397 #7B9723
analogous
#234197 #3F2397 #792397
triadic
#3F2397 #973F23 #23973F
tetradic
#3F2397 #972341 #7B9723 #239779
square
#3F2397 #972341 #7B9723 #239779
split-complementary
#3F2397 #977923 #419723
monochromatic
#160C34 #2A1765 #3F2397 #542FC9 #7A5BD9

Accessibility & contrast

On white

11.06
#3F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3F2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2397
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2397#FFFFFF#000000##FFFFFF
##3F23971.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#11445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2397;
/* rgb */ color: rgb(63, 35, 151);
/* oklch */ color: oklch(37.5% 0.175 285.3);
Tailwind
colors: {
  custom: {
    50: '#7f61b7',
    500: '#3f2397',
    950: '#000000',
  },
}
SCSS
$custom: #3f2397;
$custom-light: #7f61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2397",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 254.483,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37489,
    "c": 0.17504,
    "h": 285.3
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#3F2397
secondary
#A5BE58
accent
#E542BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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