#3E2889#3E2889

#3E2889 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.152 H 286.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#3E2889
RGBrgb(62, 40, 137)
HSLhsl(254, 55%, 35%)
HSVhsv(254, 71%, 54%)
CMYKcmyk(54.7%, 70.8%, 0%, 46.3%)
CIE-LABlab(24.79, 36.33, -50.69)
CIE-LCHlch(24.79, 62.36, 305.63°)
OKLaboklab(36.74% 0.0438 -0.1456)
OKLCHoklch(36.74% 0.152 286.7)
XYZxyz(7.2594, 4.3475, 24.1187)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2889 #738928
analogous
#284389 #3E2889 #6E2889
triadic
#3E2889 #893E28 #28893E
tetradic
#3E2889 #892843 #738928 #28896E
square
#3E2889 #892843 #738928 #28896E
split-complementary
#3E2889 #896E28 #438928
monochromatic
#130C2A #291A5A #3E2889 #5336B8 #765CCF

Accessibility & contrast

On white

11.23
#3E2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2889
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2889#FFFFFF#000000##FFFFFF
##3E28891.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#204155
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2889;
/* rgb */ color: rgb(62, 40, 137);
/* oklch */ color: oklch(36.7% 0.152 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b64ac',
    500: '#3e2889',
    950: '#000000',
  },
}
SCSS
$custom: #3e2889;
$custom-light: #7b64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2889",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 253.608,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36741,
    "c": 0.15207,
    "h": 286.7
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#3E2889
secondary
#A0B558
accent
#DE4ABC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E2889

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

Preview Lab → · Contrast checker → · Palette generator →

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