#3E2398#3E2398

#3E2398 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.176 H 284.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3E2398
RGBrgb(62, 35, 152)
HSLhsl(254, 63%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(59.2%, 77%, 0%, 40.4%)
CIE-LABlab(25.24, 43.66, -59.23)
CIE-LCHlch(25.24, 73.59, 306.40°)
OKLaboklab(37.49% 0.0445 -0.1706)
OKLCHoklch(37.49% 0.176 284.6)
XYZxyz(8.2534, 4.4927, 30.1319)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2398 #7D9823
analogous
#234398 #3E2398 #792398
triadic
#3E2398 #983E23 #23983E
tetradic
#3E2398 #982343 #7D9823 #239879
square
#3E2398 #982343 #7D9823 #239879
split-complementary
#3E2398 #987923 #439823
monochromatic
#150C35 #2A1866 #3E2398 #522ECA #795CD9

Accessibility & contrast

On white

11.06
#3E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2398
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2398#FFFFFF#000000##FFFFFF
##3E23981.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#0A445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2398;
/* rgb */ color: rgb(62, 35, 152);
/* oklch */ color: oklch(37.5% 0.176 284.6);
Tailwind
colors: {
  custom: {
    50: '#7e61b7',
    500: '#3e2398',
    950: '#000000',
  },
}
SCSS
$custom: #3e2398;
$custom-light: #7e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2398",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 253.846,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37495,
    "c": 0.17636,
    "h": 284.6
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#3E2398
secondary
#A7BE59
accent
#E642C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2398

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

Preview Lab → · Contrast checker → · Palette generator →

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