#3F2D8E#3F2D8E

#3F2D8E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.152 H 285.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3F2D8E
RGBrgb(63, 45, 142)
HSLhsl(251, 52%, 37%)
HSVhsv(251, 68%, 56%)
CMYKcmyk(55.6%, 68.3%, 0%, 44.3%)
CIE-LABlab(26.41, 35.13, -51.14)
CIE-LCHlch(26.41, 62.05, 304.48°)
OKLaboklab(38.07% 0.0396 -0.147)
OKLCHoklch(38.07% 0.152 285.1)
XYZxyz(7.8693, 4.8861, 26.1144)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D8E #7C8E2D
analogous
#2D4C8E #3F2D8E #702D8E
triadic
#3F2D8E #8E3F2D #2D8E3F
tetradic
#3F2D8E #8E2D4C #7C8E2D #2D8E70
square
#3F2D8E #8E2D4C #7C8E2D #2D8E70
split-complementary
#3F2D8E #8E702D #4C8E2D
monochromatic
#161031 #2A1E60 #3F2D8E #543CBC #7A67CF

Accessibility & contrast

On white

10.62
#3F2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2D8E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D8E#FFFFFF#000000##FFFFFF
##3F2D8E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#1D4659
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2d8e;
/* rgb */ color: rgb(63, 45, 142);
/* oklch */ color: oklch(38.1% 0.152 285.1);
Tailwind
colors: {
  custom: {
    50: '#7c67b0',
    500: '#3f2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d8e;
$custom-light: #7c67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d8e",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 251.134,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38065,
    "c": 0.1522,
    "h": 285.1
  },
  "luminance": 0.04887
}

Semantic roles & 50–950 ramp

primary
#3F2D8E
secondary
#A6B561
accent
#DB4CC1
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3F2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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