#3E2770#3E2770

#3E2770 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.120 H 293.6°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3E2770
RGBrgb(62, 39, 112)
HSLhsl(259, 48%, 30%)
HSVhsv(259, 65%, 44%)
CMYKcmyk(44.6%, 65.2%, 0%, 56.1%)
CIE-LABlab(22.46, 29.20, -38.64)
CIE-LCHlch(22.46, 48.43, 307.08°)
OKLaboklab(34.4% 0.0482 -0.1102)
OKLCHoklch(34.4% 0.12 293.6)
XYZxyz(5.6360, 3.6449, 15.7327)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2770 #597027
analogous
#273570 #3E2770 #632770
triadic
#3E2770 #703E27 #27703E
tetradic
#3E2770 #702735 #597027 #277063
square
#3E2770 #702735 #597027 #277063
split-complementary
#3E2770 #706327 #357027
monochromatic
#0D0817 #251743 #3E2770 #57379D #7450C2

Accessibility & contrast

On white

12.15
#3E2770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3E2770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2770
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2770#FFFFFF#000000##FFFFFF
##3E27701.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#303847
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3e2770;
/* rgb */ color: rgb(62, 39, 112);
/* oklch */ color: oklch(34.4% 0.120 293.6);
Tailwind
colors: {
  custom: {
    50: '#78629a',
    500: '#3e2770',
    950: '#000000',
  },
}
SCSS
$custom: #3e2770;
$custom-light: #78629a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2770",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 258.904,
    "s": 48.344,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34404,
    "c": 0.12029,
    "h": 293.6
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#3E2770
secondary
#89A250
accent
#D850AD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2770

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

Preview Lab → · Contrast checker → · Palette generator →

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