#3E2188#3E2188

#3E2188 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.159 H 288.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#3E2188
RGBrgb(62, 33, 136)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(54.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(23.30, 39.91, -52.50)
CIE-LCHlch(23.30, 65.95, 307.24°)
OKLaboklab(35.66% 0.0503 -0.1509)
OKLCHoklch(35.66% 0.159 288.4)
XYZxyz(6.9731, 3.8891, 23.6710)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2188 #6B8821
analogous
#213788 #3E2188 #712188
triadic
#3E2188 #883E21 #21883E
tetradic
#3E2188 #882137 #6B8821 #218871
square
#3E2188 #882137 #6B8821 #218871
split-complementary
#3E2188 #887121 #378821
monochromatic
#110925 #281557 #3E2188 #542DB9 #754FD4

Accessibility & contrast

On white

11.81
#3E2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2188
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2188#FFFFFF#000000##FFFFFF
##3E21881.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#213D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2188;
/* rgb */ color: rgb(62, 33, 136);
/* oklch */ color: oklch(35.7% 0.159 288.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fac',
    500: '#3e2188',
    950: '#000000',
  },
}
SCSS
$custom: #3e2188;
$custom-light: #7c5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2188",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 256.893,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35656,
    "c": 0.15908,
    "h": 288.4
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#3E2188
secondary
#9AB84D
accent
#E444B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2188

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

Preview Lab → · Contrast checker → · Palette generator →

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