#3E208B#3E208B

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

Color values

HEX#3E208B
RGBrgb(62, 32, 139)
HSLhsl(257, 63%, 34%)
HSVhsv(257, 77%, 55%)
CMYKcmyk(55.4%, 77%, 0%, 45.5%)
CIE-LABlab(23.41, 41.32, -54.20)
CIE-LCHlch(23.41, 68.15, 307.32°)
OKLaboklab(35.82% 0.0503 -0.1559)
OKLCHoklch(35.82% 0.164 287.9)
XYZxyz(7.1619, 3.9209, 24.8005)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E208B #6D8B20
analogous
#20388B #3E208B #73208B
triadic
#3E208B #8B3E20 #208B3E
tetradic
#3E208B #8B2038 #6D8B20 #208B73
square
#3E208B #8B2038 #6D8B20 #208B73
split-complementary
#3E208B #8B7320 #388B20
monochromatic
#120928 #281559 #3E208B #542BBD #754FD6

Accessibility & contrast

On white

11.77
#3E208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3E208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E208B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E208B#FFFFFF#000000##FFFFFF
##3E208B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e208b;
/* rgb */ color: rgb(62, 32, 139);
/* oklch */ color: oklch(35.8% 0.164 287.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fae',
    500: '#3e208b',
    950: '#000000',
  },
}
SCSS
$custom: #3e208b;
$custom-light: #7c5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e208b",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 256.822,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3582,
    "c": 0.16381,
    "h": 287.9
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#3E208B
secondary
#9BBA4D
accent
#E642B8
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E208B

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

Preview Lab → · Contrast checker → · Palette generator →

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