#3F208A#3F208A

#3F208A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.163 H 288.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#3F208A
RGBrgb(63, 32, 138)
HSLhsl(258, 62%, 33%)
HSVhsv(258, 77%, 54%)
CMYKcmyk(54.3%, 76.8%, 0%, 45.9%)
CIE-LABlab(23.42, 41.18, -53.55)
CIE-LCHlch(23.42, 67.55, 307.56°)
OKLaboklab(35.82% 0.0522 -0.154)
OKLCHoklch(35.82% 0.163 288.7)
XYZxyz(7.1525, 3.9244, 24.4204)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F208A #6B8A20
analogous
#20368A #3F208A #74208A
triadic
#3F208A #8A3F20 #208A3F
tetradic
#3F208A #8A2036 #6B8A20 #208A74
square
#3F208A #8A2036 #6B8A20 #208A74
split-complementary
#3F208A #8A7420 #368A20
monochromatic
#120927 #281458 #3F208A #562CBC #764ED6

Accessibility & contrast

On white

11.76
#3F208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3F208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F208A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F208A#FFFFFF#000000##FFFFFF
##3F208A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#223D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f208a;
/* rgb */ color: rgb(63, 32, 138);
/* oklch */ color: oklch(35.8% 0.163 288.7);
Tailwind
colors: {
  custom: {
    50: '#7d5fad',
    500: '#3f208a',
    950: '#000000',
  },
}
SCSS
$custom: #3f208a;
$custom-light: #7d5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f208a",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 257.547,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.16256,
    "h": 288.7
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#3F208A
secondary
#99B94D
accent
#E542B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F208A

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

Preview Lab → · Contrast checker → · Palette generator →

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