#3F207D#3F207D

#3F207D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.147 H 292.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3F207D
RGBrgb(63, 32, 125)
HSLhsl(260, 59%, 31%)
HSVhsv(260, 74%, 49%)
CMYKcmyk(49.6%, 74.4%, 0%, 51%)
CIE-LABlab(22.20, 37.36, -47.37)
CIE-LCHlch(22.20, 60.33, 308.26°)
OKLaboklab(34.59% 0.0554 -0.1358)
OKLCHoklch(34.59% 0.147 292.2)
XYZxyz(6.2670, 3.5702, 19.7570)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F207D #5E7D20
analogous
#202F7D #3F207D #6D207D
triadic
#3F207D #7D3F20 #207D3F
tetradic
#3F207D #7D202F #5E7D20 #207D6D
square
#3F207D #7D202F #5E7D20 #207D6D
split-complementary
#3F207D #7D6D20 #2F7D20
monochromatic
#0E071C #26144C #3F207D #582CAE #7547D0

Accessibility & contrast

On white

12.25
#3F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3F207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F207D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F207D#FFFFFF#000000##FFFFFF
##3F207D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#2B384C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f207d;
/* rgb */ color: rgb(63, 32, 125);
/* oklch */ color: oklch(34.6% 0.147 292.2);
Tailwind
colors: {
  custom: {
    50: '#7b5ea3',
    500: '#3f207d',
    950: '#000000',
  },
}
SCSS
$custom: #3f207d;
$custom-light: #7b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f207d",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 260,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.14671,
    "h": 292.2
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#3F207D
secondary
#8EB049
accent
#E245AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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