#3F2A79#3F2A79

#3F2A79 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.128 H 290.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3F2A79
RGBrgb(63, 42, 121)
HSLhsl(256, 48%, 32%)
HSVhsv(256, 65%, 47%)
CMYKcmyk(47.9%, 65.3%, 0%, 52.5%)
CIE-LABlab(23.98, 30.34, -41.93)
CIE-LCHlch(23.98, 51.76, 305.89°)
OKLaboklab(35.76% 0.0453 -0.1199)
OKLCHoklch(35.76% 0.128 290.7)
XYZxyz(6.3281, 4.0929, 18.5420)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2A79 #64792A
analogous
#2A3D79 #3F2A79 #672A79
triadic
#3F2A79 #793F2A #2A793F
tetradic
#3F2A79 #792A3D #64792A #2A7967
square
#3F2A79 #792A3D #64792A #2A7967
split-complementary
#3F2A79 #79672A #3D792A
monochromatic
#100A1E #271A4C #3F2A79 #573AA6 #7558C5

Accessibility & contrast

On white

11.55
#3F2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3F2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2A79
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2A79#FFFFFF#000000##FFFFFF
##3F2A791.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#2D3C4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f2a79;
/* rgb */ color: rgb(63, 42, 121);
/* oklch */ color: oklch(35.8% 0.128 290.7);
Tailwind
colors: {
  custom: {
    50: '#7965a0',
    500: '#3f2a79',
    950: '#000000',
  },
}
SCSS
$custom: #3f2a79;
$custom-light: #7965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2a79",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 255.949,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35757,
    "c": 0.12816,
    "h": 290.7
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#3F2A79
secondary
#94AB54
accent
#D850B4
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #3F2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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