#3F2D81#3F2D81

#3F2D81 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.135 H 287.8°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#3F2D81
RGBrgb(63, 45, 129)
HSLhsl(253, 48%, 34%)
HSVhsv(253, 65%, 51%)
CMYKcmyk(51.2%, 65.1%, 0%, 49.4%)
CIE-LABlab(25.32, 30.99, -44.81)
CIE-LCHlch(25.32, 54.49, 304.67°)
OKLaboklab(36.93% 0.0411 -0.1284)
OKLCHoklch(36.93% 0.135 287.8)
XYZxyz(6.9496, 4.5182, 21.2705)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2D81 #6F812D
analogous
#2D4581 #3F2D81 #692D81
triadic
#3F2D81 #813F2D #2D813F
tetradic
#3F2D81 #812D45 #6F812D #2D8169
square
#3F2D81 #812D45 #6F812D #2D8169
split-complementary
#3F2D81 #81692D #45812D
monochromatic
#130D26 #291D54 #3F2D81 #553DAE #7761C8

Accessibility & contrast

On white

11.03
#3F2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2D81
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2D81#FFFFFF#000000##FFFFFF
##3F2D811.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#284152
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f2d81;
/* rgb */ color: rgb(63, 45, 129);
/* oklch */ color: oklch(36.9% 0.135 287.8);
Tailwind
colors: {
  custom: {
    50: '#7a67a6',
    500: '#3f2d81',
    950: '#000000',
  },
}
SCSS
$custom: #3f2d81;
$custom-light: #7a67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2d81",
  "rgb": {
    "r": 63,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 252.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.13479,
    "h": 287.8
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#3F2D81
secondary
#9CAE5C
accent
#D850BB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #3F2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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