#3E208C#3E208C

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

Color values

HEX#3E208C
RGBrgb(62, 32, 140)
HSLhsl(257, 63%, 34%)
HSVhsv(257, 77%, 55%)
CMYKcmyk(55.7%, 77.1%, 0%, 45.1%)
CIE-LABlab(23.51, 41.62, -54.66)
CIE-LCHlch(23.51, 68.70, 307.29°)
OKLaboklab(35.92% 0.0501 -0.1572)
OKLCHoklch(35.92% 0.165 287.7)
XYZxyz(7.2353, 3.9502, 25.1871)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E208C #6E8C20
analogous
#20388C #3E208C #74208C
triadic
#3E208C #8C3E20 #208C3E
tetradic
#3E208C #8C2038 #6E8C20 #208C74
square
#3E208C #8C2038 #6E8C20 #208C74
split-complementary
#3E208C #8C7420 #388C20
monochromatic
#120928 #28155A #3E208C #542BBE #7550D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E208C#FFFFFF#000000##FFFFFF
##3E208C1.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)
#003A8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#1D3E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e208c;
/* rgb */ color: rgb(62, 32, 140);
/* oklch */ color: oklch(35.9% 0.165 287.7);
Tailwind
colors: {
  custom: {
    50: '#7d5faf',
    500: '#3e208c',
    950: '#000000',
  },
}
SCSS
$custom: #3e208c;
$custom-light: #7d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e208c",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 256.667,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.16502,
    "h": 287.7
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#3E208C
secondary
#9CBA4E
accent
#E642B8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #3E208C

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

Preview Lab → · Contrast checker → · Palette generator →

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