#3F2279#3F2279

#3F2279 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.139 H 292.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#3F2279
RGBrgb(63, 34, 121)
HSLhsl(260, 56%, 30%)
HSVhsv(260, 72%, 47%)
CMYKcmyk(47.9%, 71.9%, 0%, 52.5%)
CIE-LABlab(22.24, 35.07, -44.76)
CIE-LCHlch(22.24, 56.87, 308.08°)
OKLaboklab(34.5% 0.0542 -0.1282)
OKLCHoklch(34.5% 0.139 292.9)
XYZxyz(6.0722, 3.5811, 18.4567)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2279 #5C7922
analogous
#223079 #3F2279 #6A2279
triadic
#3F2279 #793F22 #22793F
tetradic
#3F2279 #792230 #5C7922 #22796A
square
#3F2279 #792230 #5C7922 #22796A
split-complementary
#3F2279 #796A22 #307922
monochromatic
#0D0719 #261549 #3F2279 #582FA9 #7549CC

Accessibility & contrast

On white

12.24
#3F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3F2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2279
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2279#FFFFFF#000000##FFFFFF
##3F22791.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#2E384A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f2279;
/* rgb */ color: rgb(63, 34, 121);
/* oklch */ color: oklch(34.5% 0.139 292.9);
Tailwind
colors: {
  custom: {
    50: '#7a5fa0',
    500: '#3f2279',
    950: '#000000',
  },
}
SCSS
$custom: #3f2279;
$custom-light: #7a5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2279",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 260,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34502,
    "c": 0.1392,
    "h": 292.9
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#3F2279
secondary
#8CAC4B
accent
#DF48AD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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