#3F208E#3F208E

#3F208E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.167 H 287.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#3F208E
RGBrgb(63, 32, 142)
HSLhsl(257, 63%, 34%)
HSVhsv(257, 77%, 56%)
CMYKcmyk(55.6%, 77.5%, 0%, 44.3%)
CIE-LABlab(23.81, 42.36, -55.40)
CIE-LCHlch(23.81, 69.74, 307.40°)
OKLaboklab(36.22% 0.0511 -0.1594)
OKLCHoklch(36.22% 0.167 287.8)
XYZxyz(7.4475, 4.0424, 25.9738)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F208E #6F8E20
analogous
#20388E #3F208E #76208E
triadic
#3F208E #8E3F20 #208E3F
tetradic
#3F208E #8E2038 #6F8E20 #208E76
square
#3F208E #8E2038 #6F8E20 #208E76
split-complementary
#3F208E #8E7620 #388E20
monochromatic
#13092A #29155C #3F208E #552BC0 #7751D8

Accessibility & contrast

On white

11.61
#3F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F208E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F208E#FFFFFF#000000##FFFFFF
##3F208E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1E3F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f208e;
/* rgb */ color: rgb(63, 32, 142);
/* oklch */ color: oklch(36.2% 0.167 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d5fb0',
    500: '#3f208e',
    950: '#000000',
  },
}
SCSS
$custom: #3f208e;
$custom-light: #7d5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f208e",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 256.909,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36218,
    "c": 0.16735,
    "h": 287.8
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#3F208E
secondary
#9CBB4F
accent
#E642B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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