#3E289E#3E289E

#3E289E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.178 H 282.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3E289E
RGBrgb(62, 40, 158)
HSLhsl(251, 60%, 39%)
HSVhsv(251, 75%, 62%)
CMYKcmyk(60.8%, 74.7%, 0%, 38%)
CIE-LABlab(26.76, 42.86, -60.39)
CIE-LCHlch(26.76, 74.06, 305.36°)
OKLaboklab(38.75% 0.0393 -0.1741)
OKLCHoklch(38.75% 0.178 282.7)
XYZxyz(8.9150, 5.0097, 32.8383)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E289E #889E28
analogous
#284D9E #3E289E #79289E
triadic
#3E289E #9E3E28 #289E3E
tetradic
#3E289E #9E284D #889E28 #289E79
square
#3E289E #9E284D #889E28 #289E79
split-complementary
#3E289E #9E7928 #4D9E28
monochromatic
#180F3C #2B1C6D #3E289E #5337CC #7D68D9

Accessibility & contrast

On white

10.49
#3E289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E289E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E289E#FFFFFF#000000##FFFFFF
##3E289E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e289e;
/* rgb */ color: rgb(62, 40, 158);
/* oklch */ color: oklch(38.7% 0.178 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f65bc',
    500: '#3e289e',
    950: '#000000',
  },
}
SCSS
$custom: #3e289e;
$custom-light: #7f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e289e",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 251.186,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38748,
    "c": 0.17847,
    "h": 282.7
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#3E289E
secondary
#AEBF63
accent
#E345C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E289E

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

Preview Lab → · Contrast checker → · Palette generator →

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