#3F208B#3F208B

#3F208B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.164 H 288.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3F208B
RGBrgb(63, 32, 139)
HSLhsl(257, 63%, 34%)
HSVhsv(257, 77%, 55%)
CMYKcmyk(54.7%, 77%, 0%, 45.5%)
CIE-LABlab(23.52, 41.47, -54.01)
CIE-LCHlch(23.52, 68.10, 307.52°)
OKLaboklab(35.92% 0.0519 -0.1553)
OKLCHoklch(35.92% 0.164 288.5)
XYZxyz(7.2252, 3.9535, 24.8035)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F208B #6C8B20
analogous
#20368B #3F208B #74208B
triadic
#3F208B #8B3F20 #208B3F
tetradic
#3F208B #8B2036 #6C8B20 #208B74
square
#3F208B #8B2036 #6C8B20 #208B74
split-complementary
#3F208B #8B7420 #368B20
monochromatic
#120928 #281559 #3F208B #562BBD #764FD6

Accessibility & contrast

On white

11.73
#3F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F208B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F208B#FFFFFF#000000##FFFFFF
##3F208B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#213E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f208b;
/* rgb */ color: rgb(63, 32, 139);
/* oklch */ color: oklch(35.9% 0.164 288.5);
Tailwind
colors: {
  custom: {
    50: '#7d5fae',
    500: '#3f208b',
    950: '#000000',
  },
}
SCSS
$custom: #3f208b;
$custom-light: #7d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f208b",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 257.383,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.16376,
    "h": 288.5
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#3F208B
secondary
#9ABA4D
accent
#E642B6
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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