#3F2181#3F2181

#3F2181 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.150 H 290.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3F2181
RGBrgb(63, 33, 129)
HSLhsl(259, 59%, 32%)
HSVhsv(259, 74%, 51%)
CMYKcmyk(51.2%, 74.4%, 0%, 49.4%)
CIE-LABlab(22.76, 38.00, -48.99)
CIE-LCHlch(22.76, 62.00, 307.80°)
OKLaboklab(35.09% 0.0536 -0.1406)
OKLCHoklch(35.09% 0.15 290.9)
XYZxyz(6.5551, 3.7292, 21.1390)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2181 #638121
analogous
#213381 #3F2181 #6F2181
triadic
#3F2181 #813F21 #21813F
tetradic
#3F2181 #812133 #638121 #21816F
square
#3F2181 #812133 #638121 #21816F
split-complementary
#3F2181 #816F21 #338121
monochromatic
#0F0820 #271550 #3F2181 #572DB2 #754BD1

Accessibility & contrast

On white

12.03
#3F2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2181
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2181#FFFFFF#000000##FFFFFF
##3F21811.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#293A4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f2181;
/* rgb */ color: rgb(63, 33, 129);
/* oklch */ color: oklch(35.1% 0.150 290.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fa6',
    500: '#3f2181',
    950: '#000000',
  },
}
SCSS
$custom: #3f2181;
$custom-light: #7b5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2181",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 258.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35094,
    "c": 0.15046,
    "h": 290.9
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#3F2181
secondary
#93B44A
accent
#E245B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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