#3F207F#3F207F

#3F207F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.149 H 291.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3F207F
RGBrgb(63, 32, 127)
HSLhsl(260, 60%, 31%)
HSVhsv(260, 75%, 50%)
CMYKcmyk(50.4%, 74.8%, 0%, 50.2%)
CIE-LABlab(22.38, 37.94, -48.34)
CIE-LCHlch(22.38, 61.45, 308.13°)
OKLaboklab(34.77% 0.055 -0.1387)
OKLCHoklch(34.77% 0.149 291.6)
XYZxyz(6.3961, 3.6219, 20.4366)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F207F #607F20
analogous
#20307F #3F207F #6E207F
triadic
#3F207F #7F3F20 #207F3F
tetradic
#3F207F #7F2030 #607F20 #207F6E
square
#3F207F #7F2030 #607F20 #207F6E
split-complementary
#3F207F #7F6E20 #307F20
monochromatic
#0F071D #27144E #3F207F #572CB0 #7548D1

Accessibility & contrast

On white

12.18
#3F207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F207F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F207F#FFFFFF#000000##FFFFFF
##3F207F1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#2A394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f207f;
/* rgb */ color: rgb(63, 32, 127);
/* oklch */ color: oklch(34.8% 0.149 291.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fa5',
    500: '#3f207f',
    950: '#000000',
  },
}
SCSS
$custom: #3f207f;
$custom-light: #7b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f207f",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 259.579,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.14917,
    "h": 291.6
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#3F207F
secondary
#90B249
accent
#E345AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F207F

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

Preview Lab → · Contrast checker → · Palette generator →

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