#3E2279#3E2279

#3E2279 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.139 H 292.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#3E2279
RGBrgb(62, 34, 121)
HSLhsl(259, 56%, 30%)
HSVhsv(259, 72%, 47%)
CMYKcmyk(48.8%, 71.9%, 0%, 52.5%)
CIE-LABlab(22.12, 34.88, -44.96)
CIE-LCHlch(22.12, 56.90, 307.80°)
OKLaboklab(34.39% 0.0527 -0.1288)
OKLCHoklch(34.39% 0.139 292.2)
XYZxyz(6.0089, 3.5485, 18.4538)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2279 #5D7922
analogous
#223279 #3E2279 #692279
triadic
#3E2279 #793E22 #22793E
tetradic
#3E2279 #792232 #5D7922 #227969
square
#3E2279 #792232 #5D7922 #227969
split-complementary
#3E2279 #796922 #327922
monochromatic
#0D0719 #261549 #3E2279 #562FA9 #7349CC

Accessibility & contrast

On white

12.28
#3E2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2279
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2279#FFFFFF#000000##FFFFFF
##3E22791.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#2C384A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e2279;
/* rgb */ color: rgb(62, 34, 121);
/* oklch */ color: oklch(34.4% 0.139 292.2);
Tailwind
colors: {
  custom: {
    50: '#795fa0',
    500: '#3e2279',
    950: '#000000',
  },
}
SCSS
$custom: #3e2279;
$custom-light: #795fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2279",
  "rgb": {
    "r": 62,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 259.31,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.13917,
    "h": 292.2
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#3E2279
secondary
#8DAC4B
accent
#DF48AF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E2279

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

Preview Lab → · Contrast checker → · Palette generator →

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