#3E2074#3E2074

#3E2074 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.135 H 294.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#3E2074
RGBrgb(62, 32, 116)
HSLhsl(261, 57%, 29%)
HSVhsv(261, 72%, 45%)
CMYKcmyk(46.6%, 72.4%, 0%, 54.5%)
CIE-LABlab(21.27, 34.52, -43.14)
CIE-LCHlch(21.27, 55.25, 308.67°)
OKLaboklab(33.65% 0.0557 -0.1234)
OKLCHoklch(33.65% 0.135 294.3)
XYZxyz(5.6546, 3.3180, 16.8621)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2074 #567420
analogous
#202C74 #3E2074 #682074
triadic
#3E2074 #743E20 #20743E
tetradic
#3E2074 #74202C #567420 #207468
square
#3E2074 #74202C #567420 #207468
split-complementary
#3E2074 #746820 #2C7420
monochromatic
#0D0718 #241344 #3E2074 #582DA4 #7443CB

Accessibility & contrast

On white

12.62
#3E2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E2074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2074
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2074#FFFFFF#000000##FFFFFF
##3E20741.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#2F3547
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e2074;
/* rgb */ color: rgb(62, 32, 116);
/* oklch */ color: oklch(33.7% 0.135 294.3);
Tailwind
colors: {
  custom: {
    50: '#795e9d',
    500: '#3e2074',
    950: '#000000',
  },
}
SCSS
$custom: #3e2074;
$custom-light: #795e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2074",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 261.429,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.13544,
    "h": 294.3
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#3E2074
secondary
#86A848
accent
#E048AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E2074

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

Preview Lab → · Contrast checker → · Palette generator →

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