#3E2799#3E2799

#3E2799 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.173 H 283.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3E2799
RGBrgb(62, 39, 153)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 75%, 60%)
CMYKcmyk(59.5%, 74.5%, 0%, 40%)
CIE-LABlab(26.08, 41.86, -58.46)
CIE-LCHlch(26.08, 71.90, 305.60°)
OKLaboklab(38.12% 0.0413 -0.1684)
OKLCHoklch(38.12% 0.173 283.8)
XYZxyz(8.4601, 4.7745, 30.6066)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2799 #829927
analogous
#274999 #3E2799 #772799
triadic
#3E2799 #993E27 #27993E
tetradic
#3E2799 #992749 #829927 #279977
square
#3E2799 #992749 #829927 #279977
split-complementary
#3E2799 #997727 #499927
monochromatic
#160E37 #2A1B68 #3E2799 #5233CA #7B63D7

Accessibility & contrast

On white

10.74
#3E2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2799
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2799#FFFFFF#000000##FFFFFF
##3E27991.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#07475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2799;
/* rgb */ color: rgb(62, 39, 153);
/* oklch */ color: oklch(38.1% 0.173 283.8);
Tailwind
colors: {
  custom: {
    50: '#7e64b8',
    500: '#3e2799',
    950: '#000000',
  },
}
SCSS
$custom: #3e2799;
$custom-light: #7e64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2799",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 252.105,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3812,
    "c": 0.17339,
    "h": 283.8
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#3E2799
secondary
#AABD5F
accent
#E345C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2799

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

Preview Lab → · Contrast checker → · Palette generator →

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