#3F2D8F#3F2D8F

#3F2D8F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.154 H 284.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#3F2D8F
RGBrgb(63, 45, 143)
HSLhsl(251, 52%, 37%)
HSVhsv(251, 69%, 56%)
CMYKcmyk(55.9%, 68.5%, 0%, 43.9%)
CIE-LABlab(26.50, 35.45, -51.62)
CIE-LCHlch(26.50, 62.62, 304.48°)
OKLaboklab(38.16% 0.0395 -0.1484)
OKLCHoklch(38.16% 0.154 284.9)
XYZxyz(7.9447, 4.9163, 26.5116)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D8F #7D8F2D
analogous
#2D4C8F #3F2D8F #702D8F
triadic
#3F2D8F #8F3F2D #2D8F3F
tetradic
#3F2D8F #8F2D4C #7D8F2D #2D8F70
square
#3F2D8F #8F2D4C #7D8F2D #2D8F70
split-complementary
#3F2D8F #8F702D #4C8F2D
monochromatic
#161032 #2A1E60 #3F2D8F #543CBE #7A67CF

Accessibility & contrast

On white

10.59
#3F2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3F2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2D8F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D8F#FFFFFF#000000##FFFFFF
##3F2D8F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#1C465A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f2d8f;
/* rgb */ color: rgb(63, 45, 143);
/* oklch */ color: oklch(38.2% 0.154 284.9);
Tailwind
colors: {
  custom: {
    50: '#7d67b1',
    500: '#3f2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d8f;
$custom-light: #7d67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d8f",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 251.02,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38155,
    "c": 0.15352,
    "h": 284.9
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#3F2D8F
secondary
#A6B662
accent
#DC4CC1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3F2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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