#3E2189#3E2189

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

Color values

HEX#3E2189
RGBrgb(62, 33, 137)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 54%)
CMYKcmyk(54.7%, 75.9%, 0%, 46.3%)
CIE-LABlab(23.40, 40.21, -52.97)
CIE-LCHlch(23.40, 66.50, 307.21°)
OKLaboklab(35.75% 0.05 -0.1523)
OKLCHoklch(35.75% 0.16 288.2)
XYZxyz(7.0445, 3.9176, 24.0471)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2189 #6C8921
analogous
#213889 #3E2189 #722189
triadic
#3E2189 #893E21 #21893E
tetradic
#3E2189 #892138 #6C8921 #218972
square
#3E2189 #892138 #6C8921 #218972
split-complementary
#3E2189 #897221 #388921
monochromatic
#110926 #281558 #3E2189 #542DBA #7550D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E2189#FFFFFF#000000##FFFFFF
##3E21891.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)
#003A8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#203D53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2189;
/* rgb */ color: rgb(62, 33, 137);
/* oklch */ color: oklch(35.8% 0.160 288.2);
Tailwind
colors: {
  custom: {
    50: '#7c60ac',
    500: '#3e2189',
    950: '#000000',
  },
}
SCSS
$custom: #3e2189;
$custom-light: #7c60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2189",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 256.731,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35753,
    "c": 0.1603,
    "h": 288.2
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E2189

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

Preview Lab → · Contrast checker → · Palette generator →

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