#3E2399#3E2399

#3E2399 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.178 H 284.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3E2399
RGBrgb(62, 35, 153)
HSLhsl(254, 63%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(59.5%, 77.1%, 0%, 40%)
CIE-LABlab(25.34, 43.96, -59.68)
CIE-LCHlch(25.34, 74.13, 306.38°)
OKLaboklab(37.6% 0.0442 -0.172)
OKLCHoklch(37.6% 0.178 284.4)
XYZxyz(8.3356, 4.5256, 30.5651)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2399 #7E9923
analogous
#234399 #3E2399 #792399
triadic
#3E2399 #993E23 #23993E
tetradic
#3E2399 #992343 #7E9923 #239979
square
#3E2399 #992343 #7E9923 #239979
split-complementary
#3E2399 #997923 #439923
monochromatic
#160C35 #2A1867 #3E2399 #522ECB #795DDA

Accessibility & contrast

On white

11.02
#3E2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2399
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2399#FFFFFF#000000##FFFFFF
##3E23991.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#07455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2399;
/* rgb */ color: rgb(62, 35, 153);
/* oklch */ color: oklch(37.6% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#7f61b8',
    500: '#3e2399',
    950: '#000000',
  },
}
SCSS
$custom: #3e2399;
$custom-light: #7f61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2399",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 253.729,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37595,
    "c": 0.17755,
    "h": 284.4
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E2399

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

Preview Lab → · Contrast checker → · Palette generator →

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