#3E2790#3E2790

#3E2790 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.162 H 285.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3E2790
RGBrgb(62, 39, 144)
HSLhsl(253, 57%, 36%)
HSVhsv(253, 73%, 56%)
CMYKcmyk(56.9%, 72.9%, 0%, 43.5%)
CIE-LABlab(25.22, 39.08, -54.32)
CIE-LCHlch(25.22, 66.92, 305.73°)
OKLaboklab(37.25% 0.0433 -0.1563)
OKLCHoklch(37.25% 0.162 285.5)
XYZxyz(7.7446, 4.4883, 26.8384)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2790 #799027
analogous
#274490 #3E2790 #722790
triadic
#3E2790 #903E27 #27903E
tetradic
#3E2790 #902744 #799027 #279072
square
#3E2790 #902744 #799027 #279072
split-complementary
#3E2790 #907227 #449027
monochromatic
#150D30 #291A60 #3E2790 #5334C0 #785ED3

Accessibility & contrast

On white

11.07
#3E2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2790
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2790#FFFFFF#000000##FFFFFF
##3E27901.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#184359
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2790;
/* rgb */ color: rgb(62, 39, 144);
/* oklch */ color: oklch(37.3% 0.162 285.5);
Tailwind
colors: {
  custom: {
    50: '#7d63b1',
    500: '#3e2790',
    950: '#000000',
  },
}
SCSS
$custom: #3e2790;
$custom-light: #7d63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2790",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 253.143,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3725,
    "c": 0.16218,
    "h": 285.5
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#3E2790
secondary
#A4B95A
accent
#E147BF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2790

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

Preview Lab → · Contrast checker → · Palette generator →

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